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)); }
public function pathIs($matcher) { $this->appendMatcher($matcher, $this->extractorFactory->createPathExtractor()); return $this; }