public function testSetGetUser() { $user = '******'; $this->uri->setUser($user); $this->assertEquals($user, $this->uri->getUser()); }
public function testSetUserPassword() { $uri = new Uri('http', 'foo:bar@www.yahoo.com'); $this->assertEquals('foo:bar', $uri->getUserInfo()); $this->assertEquals('foo', $uri->getUser()); $this->assertEquals('bar', $uri->getPassword()); $this->assertEquals('http://*****:*****@www.yahoo.com', $uri->toString()); }