/** * @test * @depends Reset */ public function Queries() { // 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->assertSame(array(), $uri1->query_arr()); $this->assertSame(array('query' => 'str'), $uri2->query_arr()); }