Ejemplo n.º 1
0
 /** @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());
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 public function matchesCollection(RouteCollection $routeCollection)
 {
     return !$routeCollection->hasPath() || strpos($this->matchingPath, $routeCollection->getPath()) === 0;
 }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 public function matchesCollection(RouteCollection $routeCollection)
 {
     return !$routeCollection->hasPath() || strpos($this->request->getUri()->getPath(), $routeCollection->getPath()) === 0;
 }