Exemple #1
0
 public function testHttpGet()
 {
     $api = new \CashWay\API(get_conf());
     $res = $api->httpGet('/path/to/test', array('query' => 'value'));
     $this->assertEquals('GET', $res['method']);
     $this->assertEquals('/1/path/to/test?query=value', $res['request']);
     $this->assertJsonStringEqualsJsonString(json_encode(null), $res['body']);
 }