InterNations\Component\HttpMock\Matcher\ExtractorFactory::createParamExistsExtractor PHP 메소드

createParamExistsExtractor() 공개 메소드

public createParamExistsExtractor ( $param )
    public function createParamExistsExtractor($param)
    {
        return static function (Request $request) use($param) {
            return $request->query->has($param);
        };
    }

Usage Example

예제 #1
0
 public function queryParamNotExists($param)
 {
     $this->appendMatcher(false, $this->extractorFactory->createParamExistsExtractor($param));
     return $this;
 }