public function test_set_controller_without_nesting() { $router = new Router(); $anotherRouter = $router->setController('foo', false); $this->assertTrue($router === $anotherRouter); $this->assertEquals('foo', $router->getController()); }