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

testGetPath() 공개 메소드

public testGetPath ( )
    public function testGetPath()
    {
        $this->request->expects($this->once())->method('getRequestUri')->will($this->returnValue('/foo/bar'));
        $extractor = $this->extractorFactory->createPathExtractor();
        $this->assertSame('/foo/bar', $extractor($this->request));
    }