public function testGetRealPathWithPrefix2() { // This time, placeholders in prefix $prefix = "/foo/{bar}/baz"; $route = new Route("/hello/{name}"); $route->prefix($prefix)->assert('bar', '\\d+')->assert('name', '\\d+'); $actual = $route->getRealPath(['bar' => '1', 'name' => '2']); $expected = "/foo/1/baz/hello/2"; $this->assertSame($expected, $actual); }