Skip to content

Commit

Permalink
Remove tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Jun 16, 2011
1 parent 99f9337 commit b88a0a0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
Expand Up @@ -20,24 +20,24 @@ class RequestHelperTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->request = new Request();
$this->request = new Request();
$this->request->initialize(array('foobar' => 'bar'));
}

public function testGetParameter()
{
public function testGetParameter()
{
$helper = new RequestHelper($this->request);

$this->assertEquals('bar', $helper->getParameter('foobar'));
$this->assertEquals('foo', $helper->getParameter('bar', 'foo'));

$this->assertNull($helper->getParameter('foo'));
}
}

public function testGetName()
{
public function testGetName()
{
$helper = new RequestHelper($this->request);

$this->assertEquals('request', $helper->getName());
}
}
}
Expand Up @@ -22,17 +22,17 @@ class SessionHelperTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->request = new Request();
$session = new Session(new ArraySessionStorage());
$session->set('foobar', 'bar');
$session->setFlash('foo', 'bar');
$this->request = new Request();

$session = new Session(new ArraySessionStorage());
$session->set('foobar', 'bar');
$session->setFlash('foo', 'bar');

$this->request->setSession($session);
}

public function testFlash()
{
public function testFlash()
{
$helper = new SessionHelper($this->request);

$this->assertTrue($helper->hasFlash('foo'));
Expand All @@ -41,22 +41,22 @@ public function testFlash()
$this->assertEquals('foo', $helper->getFlash('bar', 'foo'));

$this->assertNull($helper->getFlash('foobar'));
}
}

public function testGet()
{
public function testGet()
{
$helper = new SessionHelper($this->request);

$this->assertEquals('bar', $helper->get('foobar'));
$this->assertEquals('foo', $helper->get('bar', 'foo'));

$this->assertNull($helper->get('foo'));
}
}

public function testGetName()
{
public function testGetName()
{
$helper = new SessionHelper($this->request);

$this->assertEquals('session', $helper->getName());
}
}
}

0 comments on commit b88a0a0

Please sign in to comment.