/** * @test */ public function shouldCallSpecifiedCallback() { $route = new Route('GET /test/page/@number.html', '\\PhpRouter\\Test\\Test->page'); $route->parseParams('/test/page/42.html'); $this->assertEquals(42, $route->dispatch()); }