public function testFindWithFilterWithDynamicParams() { $routePattern1 = new RoutePattern('this/one'); $routePattern1->addFilter(function ($result) { return $result; }); $routes = array(new Route($routePattern1, function () { return true; })); $request = new RequestMock(); $request->setRequestUri('this/one'); $routeFinder = new RouteFinder(new Container(['result' => true])); $controller = $routeFinder->find($request, $routes)->getController(); $this->assertTrue($controller()); }