1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 10:53:01 +02:00

rewritten binary check

This commit is contained in:
Oliver Vogel
2014-04-09 16:47:44 +02:00
parent 6c0574ddba
commit cedb085cdc
2 changed files with 18 additions and 11 deletions

View File

@@ -64,6 +64,16 @@ class ImageTest extends PHPUnit_Framework_Testcase
$img = new Image('public/foo/bar/invalid_image_path.jpg');
}
/**
* @expectedException Intervention\Image\Exception\ImageNotFoundException
*/
public function testConstructorWithNonAsciiCharacters()
{
// file does not exists but path string should NOT be considered
// as binary data. (should _NOT_ throw InvalidImageDataStringException)
$img = new Image('public/Über.jpg');
}
/**
* @expectedException Intervention\Image\Exception\InvalidImageTypeException
*/