public function testSetAuthorityReconstitutes() { $authority = 'me@foo.com:3000'; $uri = new URI(); $uri->setAuthority($authority); $this->assertEquals($authority, $uri->getAuthority()); }