/** * @test * @depends URI\GenerateTest::Reset */ public function Query_Get() { // Test both when there is and isn't pre-existing data $uri1 = new \uri('example.com'); $uri2 = new \uri('https://*****:*****@example.com:777/path/to/script.php?query=str#fragment'); // Check For Errors $this->assertEmpty($uri1->error); $this->assertEmpty($uri2->error); $this->assertNull($uri1->query_get('a')); $this->assertEquals('str', $uri2->query_get('query')); }