mirror of
https://github.com/Intervention/image.git
synced 2025-09-09 05:30:40 +02:00
added destroy method
This commit is contained in:
@@ -1784,4 +1784,11 @@ class ImageTest extends PHPUnit_Framework_Testcase
|
||||
$img->encode();
|
||||
$this->assertEquals($img->encoded, $img->encode());
|
||||
}
|
||||
|
||||
public function testDestroy()
|
||||
{
|
||||
$img = $this->getTestImage();
|
||||
$img->destroy();
|
||||
$this->assertEquals(get_resource_type($img->resource), 'Unknown');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user