示例#1
0
文件: ApiBase.php 项目: picoss/smoney
 protected function deleteObject($url)
 {
     $headers = $this->getBaseHeaders();
     try {
         $response = $this->root->getHttpClient()->delete($url, $headers);
         return true;
     } catch (ClientException $e) {
         $this->addError($e->getRequest(), $e->getResponse());
         return false;
     }
 }
示例#2
0
 public function testSMoneyApiUser()
 {
     $apiUser = $this->smoneyApi->user();
     $this->assertInstanceOf('Picoss\\SMoney\\Api\\ApiUser', $apiUser);
 }