PhlyTest\Http\UriTest::testMutationResetsUriStringPropertyInClone PHP Method

testMutationResetsUriStringPropertyInClone() public method

public testMutationResetsUriStringPropertyInClone ( $method, $value )
    public function testMutationResetsUriStringPropertyInClone($method, $value)
    {
        $uri = new Uri('http://example.com/path?query=string#fragment');
        $string = (string) $uri;
        $this->assertAttributeEquals($string, 'uriString', $uri);
        $test = $uri->{$method}($value);
        $this->assertAttributeInternalType('null', 'uriString', $test);
        $this->assertAttributeEquals($string, 'uriString', $uri);
    }
UriTest