We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3859b commit 233d9ddCopy full SHA for 233d9dd
tests/ImageTest.php
@@ -3,6 +3,15 @@
3
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
4
use Folklore\Image\Exception\FormatException;
5
6
+//Add getimagesizefromstring for PHP 5.3
7
+if (!function_exists('getimagesizefromstring')) {
8
+ function getimagesizefromstring($data)
9
+ {
10
+ $uri = 'data://application/octet-stream;base64,' . base64_encode($data);
11
+ return getimagesize($uri);
12
+ }
13
+}
14
+
15
class ImageTest extends Orchestra\Testbench\TestCase {
16
17
protected $imagePath = '/image.jpg';
0 commit comments