More tests

This commit is contained in:
Joshua Sherman 2013-12-30 23:29:52 -05:00
parent ec4d771440
commit efa8f77eba

View file

@ -32,13 +32,25 @@ class ControllerTest extends PHPUnit_Framework_TestCase
{ {
$this->fail(); $this->fail();
} }
*/
public function testAttributesInURI() public function testAttributesInURI()
{ {
/testing/id:123/foo:bar setUpRequest('home/id:123');
$this->fail();
new Controller();
$this->assertEquals(123, Browser::get('id'));
setUpRequest('home/id:456/foo:bar');
new Controller();
// Compensates for 2 empty template executions of the Controller
$this->expectOutputString('[][]');
$this->assertEquals(456, Browser::get('id'));
$this->assertEquals('bar', Browser::get('foo'));
} }
*/
public function testUpperCaseURI() public function testUpperCaseURI()
{ {