parse() публичный Метод

Iterates through all segments in $this->uriPattern and creates appropriate RoutePart instances.
public parse ( ) : void
Результат void
 /**
  * @test
  */
 public function parseSetsDefaultValueOfRoutePartsRecursively()
 {
     $this->route->setUriPattern('{foo.bar}');
     $this->route->setRoutePartsConfiguration(['foo.bar' => ['handler' => 'SomeRoutePartHandler']]);
     $this->route->setDefaults(['foo' => ['bar' => 'SomeDefaultValue']]);
     $mockRoutePartHandler = $this->createMock(Routing\DynamicRoutePartInterface::class);
     $mockRoutePartHandler->expects($this->once())->method('setDefaultValue')->with('SomeDefaultValue');
     $this->mockObjectManager->expects($this->once())->method('get')->with('SomeRoutePartHandler')->will($this->returnValue($mockRoutePartHandler));
     $this->route->parse();
 }