InterNations\Component\HttpMock\Tests\Matcher\ExtractorFactoryTest::testGetMethod PHP 메소드

testGetMethod() 공개 메소드

public testGetMethod ( )
    public function testGetMethod()
    {
        $this->request->expects($this->once())->method('getMethod')->will($this->returnValue('POST'));
        $extractor = $this->extractorFactory->createMethodExtractor();
        $this->assertSame('POST', $extractor($this->request));
    }