Exemplo n.º 1
0
 /**
  * @param int $id
  * @return bool
  */
 public function delete($id)
 {
     $endpoint = new Delete($this->getTransport());
     $endpoint->setId($id);
     try {
         $result = $endpoint->performRequest();
     } catch (ResourceNotFoundException $e) {
         return false;
     }
     return $result['status'] == 204;
 }
Exemplo n.º 2
0
 /**
  * @expectedException \Hitmeister\Component\Api\Exceptions\RuntimeException
  * @expectedExceptionMessage Required params id is not set
  */
 public function testExceptionOnEmptyId()
 {
     $delete = new Delete($this->transport);
     $delete->getURI();
 }