Ejemplo n.º 1
0
Archivo: api.php Proyecto: R-J/hm3
 /**
  * @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')));
 }