More tests
This commit is contained in:
parent
ec4d771440
commit
efa8f77eba
1 changed files with 15 additions and 3 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue