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 methodIs($matcher) { $this->appendMatcher($matcher, $this->extractorFactory->createMethodExtractor()); return $this; }
public function queryParamNotExists($param) { $this->appendMatcher(false, $this->extractorFactory->createParamExistsExtractor($param)); return $this; }