/** * @covers OAuth\Common\Http\Uri\Uri::__construct * @covers OAuth\Common\Http\Uri\Uri::parseUri * @covers OAuth\Common\Http\Uri\Uri::setUserInfo * @covers OAuth\Common\Http\Uri\Uri::protectUserInfo * @covers OAuth\Common\Http\Uri\Uri::getAuthority */ public function testGetAuthorityWithUsernameAndPassWithoutExplicitPort() { $uri = new Uri('http://*****:*****@example.com'); $this->assertSame('peehaa:********@example.com', $uri->getAuthority()); }