PhlyTest\Http\UriTest::testWithUserInfoReturnsNewInstanceWithProvidedUser PHP Method

testWithUserInfoReturnsNewInstanceWithProvidedUser() public method

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