예제 #1
0
 public function testWithPathForSamePath()
 {
     $uri = new Uri('https://*****:*****@local.example.com:3001/foo?bar=baz#quz');
     $new = $uri->withPath('/foo');
     $this->assertNotSame($uri, $new);
     $this->assertEquals('/foo', $new->getPath());
     $this->assertEquals('https://*****:*****@local.example.com:3001/foo?bar=baz#quz', (string) $new);
 }