Beispiel #1
0
 public function onDelete()
 {
     $method = $this->resource->getMethod('DELETE');
     $record = $this->parseRequest($method);
     $response = $this->doDelete($record, $this->version);
     $this->sendResponse($method, $response);
 }
Beispiel #2
0
 /**
  * @expectedException \RuntimeException
  */
 public function testGetMethodInvalid()
 {
     $resource = new Resource(Resource::STATUS_ACTIVE, '/foo');
     $resource->getMethod('GET');
 }