mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 11:31:16 +00:00
Fix absolute path in tests
This commit is contained in:
@@ -20,9 +20,12 @@ if (version_compare($PHP_VERSION, '8.0.0', '>=')) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$dir = realpath(dirname(__FILE__));
|
||||
$file = $dir . DIRECTORY_SEPARATOR . 'dummy.pdf';
|
||||
|
||||
$img = new Imagick();
|
||||
|
||||
if ($img->readImage('dummy.pdf') !== True) {
|
||||
if ($img->readImage($file) !== True) {
|
||||
echo 'FAIL: newImage()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user