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:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user