/** * @group internet */ function test_dget() { $http = new HTTPClient(); $data = $http->dget($this->server . '/get', array('foo' => 'bar')); $this->assertFalse($data === false, 'HTTP response'); $resp = json_decode($data, true); $this->assertTrue(is_array($resp), 'JSON response'); $this->assertArrayHasKey('args', $resp); $this->assertEquals(array('foo' => 'bar'), $resp['args']); }