createPathExtractor() public method

public createPathExtractor ( )
 public function testGetPathWithBasePathThatDoesNotMatch()
 {
     $this->request->expects($this->once())->method('getRequestUri')->will($this->returnValue('/bar'));
     $extractorFactory = new ExtractorFactory('/foo');
     $extractor = $extractorFactory->createPathExtractor();
     $this->assertSame('', $extractor($this->request));
 }
Beispiel #2
0
 public function pathIs($matcher)
 {
     $this->appendMatcher($matcher, $this->extractorFactory->createPathExtractor());
     return $this;
 }