/** @covers Brickoo\Component\Routing\Route\RouteCollection::getPath */ public function testGetRouteCollectionCommonPath() { $path = "/articles/test-collection"; $routeCollection = new RouteCollection("test.collection", $path); $this->assertEquals($path, $routeCollection->getPath()); }
/** {@inheritDoc} */ public function matchesCollection(RouteCollection $routeCollection) { return !$routeCollection->hasPath() || strpos($this->matchingPath, $routeCollection->getPath()) === 0; }
/** {@inheritDoc} */ public function matchesCollection(RouteCollection $routeCollection) { return !$routeCollection->hasPath() || strpos($this->request->getUri()->getPath(), $routeCollection->getPath()) === 0; }