public function testHttpsWithOtherPortNoPathAndQuery() { $h = new Uri("https://www.example.com:8081/?action=foo"); $this->assertEquals("https", $h->getScheme()); $this->assertEquals("www.example.com", $h->getHost()); $this->assertEquals(8081, $h->getPort()); $this->assertEquals("/", $h->getPath()); $this->assertEquals("action=foo", $h->getQuery()); }