示例#1
0
 public function testSetGetUser()
 {
     $user = '******';
     $this->uri->setUser($user);
     $this->assertEquals($user, $this->uri->getUser());
 }
示例#2
0
文件: UriTest.php 项目: seytar/psx
 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());
 }