public function testUserPass() { $h = new Uri("http://*****:*****@www.example.com/"); $h->setFragment("bar=foo"); $this->assertEquals("http://*****:*****@www.example.com/#bar=foo", $h->getUri()); }