GuzzleHttp\Tests\Psr7\UriNormalizerTest::testRemoveDotSegments PHP Метод

testRemoveDotSegments() публичный Метод

    public function testRemoveDotSegments()
    {
        $uri = new Uri('http://example.org/../a/b/../c/./d.html');
        $normalizedUri = UriNormalizer::normalize($uri, UriNormalizer::REMOVE_DOT_SEGMENTS);
        $this->assertInstanceOf('Psr\\Http\\Message\\UriInterface', $normalizedUri);
        $this->assertSame('http://example.org/a/c/d.html', (string) $normalizedUri);
    }