function test08_delete_derived()
{
// should allow deleting derived resource
\Cloudinary\Uploader::upload("tests/logo.png", array("public_id" => "api_test3", "eager" => array("transformation" => array("width" => 101, "crop" => "scale"))));
$resource = $this->api->resource("api_test3");
$this->assertNotEquals($resource, NULL);
$this->assertEquals(count($resource["derived"]), 1);
$derived_resource_id = $resource["derived"][0]["id"];
$this->api->delete_derived_resources(array($derived_resource_id));
$resource = $this->api->resource("api_test3");
$this->assertNotEquals($resource, NULL);
$this->assertEquals(count($resource["derived"]), 0);
}