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

testGetPathWithBasePathTrailingSlash() 공개 메소드

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