public function test_add_prefix() { $router = new Router(); $this->assertTrue($router->addPrefix('foo') === $router); $this->assertEquals('foo', $router->getPrefix()); $router->addPrefix('bar'); $this->assertEquals('foo/bar', $router->getPrefix()); }