/** * @preserveGlobalState disabled * @runInSeparateProcess */ public function test_curl_result() { $api = new Hm_API_Curl(); $this->assertEquals(array('unit' => 'test'), $api->command('asdf', array(), array('foo' => 'bar'))); Hm_Functions::$exec_res = NULL; $this->assertEquals(array(), $api->command('asdf', array(), array('foo' => 'bar'))); }