Remove tabs

This commit is contained in:
stloyd 2011-06-11 10:27:54 +02:00
parent 99f9337517
commit b88a0a0d8a
2 changed files with 21 additions and 21 deletions

View File

@ -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());
}
}
}

View File

@ -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'));
@ -41,22 +41,22 @@ class SessionHelperTest extends \PHPUnit_Framework_TestCase
$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());
}
}
}