PhlyTest\Http\UriTest::testWithQueryReturnsNewInstanceWithProvidedQuery PHP Method

testWithQueryReturnsNewInstanceWithProvidedQuery() public method

    public function testWithQueryReturnsNewInstanceWithProvidedQuery()
    {
        $uri = new Uri('https://user:[email protected]:3001/foo?bar=baz#quz');
        $new = $uri->withQuery('baz=bat');
        $this->assertNotSame($uri, $new);
        $this->assertEquals('baz=bat', $new->getQuery());
        $this->assertEquals('https://user:[email protected]:3001/foo?baz=bat#quz', (string) $new);
    }
UriTest