Ejemplo n.º 1
0
 public function testWithUserInfoForSameUserAndPass()
 {
     $uri = new Uri('https://*****:*****@local.example.com:3001/foo?bar=baz#quz');
     $new = $uri->withUserInfo('user', 'pass');
     $this->assertNotSame($uri, $new);
     $this->assertEquals('user:pass', $new->getUserInfo());
     $this->assertEquals('https://*****:*****@local.example.com:3001/foo?bar=baz#quz', (string) $new);
 }