InterNations\Component\HttpMock\Matcher\ExtractorFactory::createMethodExtractor PHP Method

createMethodExtractor() public method

    public function createMethodExtractor()
    {
        return static function (Request $request) {
            return $request->getMethod();
        };
    }

Usage Example

Example #1
0
 public function methodIs($matcher)
 {
     $this->appendMatcher($matcher, $this->extractorFactory->createMethodExtractor());
     return $this;
 }
All Usage Examples Of InterNations\Component\HttpMock\Matcher\ExtractorFactory::createMethodExtractor