createMethodExtractor() 공개 메소드

예제 #1
0
 public function methodIs($matcher)
 {
     $this->appendMatcher($matcher, $this->extractorFactory->createMethodExtractor());
     return $this;
 }
 public function testGetMethod()
 {
     $this->request->expects($this->once())->method('getMethod')->will($this->returnValue('POST'));
     $extractor = $this->extractorFactory->createMethodExtractor();
     $this->assertSame('POST', $extractor($this->request));
 }