1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-08 21:20:46 +02:00

added ImageBackupNotAvailableException

This commit is contained in:
Oliver Vogel
2014-03-18 18:57:12 +01:00
parent 51a75c8e25
commit 495e415c25
3 changed files with 19 additions and 0 deletions

View File

@@ -1419,6 +1419,15 @@ class ImageTest extends PHPUnit_Framework_Testcase
$this->assertEquals('#0000ff', $img->pickColor(0, 0, 'hex'));
}
/**
* @expectedException Intervention\Image\Exception\ImageBackupNotAvailableException
*/
public function testResetImageWithoutBackup()
{
$img = $this->getTestImage();
$img->reset();
}
public function testBackup()
{
$img = new Image(null, 800, 600, '#0000ff');