Fix absolute path in tests

This commit is contained in:
cytopia
2020-08-09 13:07:53 +02:00
parent 83b4cb6b43
commit fabc29299c
2 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,12 @@
## Unreleased
## Release 0.109
#### Fixed
- Fixed absolute paths in tests
## Release 0.108
#### Added

View File

@@ -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);
}