コード例 #1
0
 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));
 }
コード例 #2
0
ファイル: Expectation.php プロジェクト: cosmorogers/http-mock
 public function methodIs($matcher)
 {
     $this->appendMatcher($matcher, $this->extractorFactory->createMethodExtractor());
     return $this;
 }
コード例 #3
0
 public function queryParamNotExists($param)
 {
     $this->appendMatcher(false, $this->extractorFactory->createParamExistsExtractor($param));
     return $this;
 }