/**
  * @test
  * @depends URI\GenerateTest::Reset
  */
 public function Query_Remove()
 {
     // 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&test=true#fragment');
     // Check For Errors
     $this->assertEmpty($uri1->error);
     $this->assertEmpty($uri2->error);
     $this->assertNull($uri1->query_remove('a'));
     $this->assertEquals($uri1->input, $uri1->str());
     $this->assertNull($uri2->query_remove('query'));
     $this->assertEquals('https://*****:*****@example.com:777/path/to/script.php?test=true#fragment', $uri2->str());
     $this->assertNull($uri2->query_remove('test'));
     $this->assertEquals('https://*****:*****@example.com:777/path/to/script.php#fragment', $uri2->str());
 }