From fabc29299c7ba7133b29047737e8abfdcbe3d88f Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 9 Aug 2020 13:07:53 +0200 Subject: [PATCH] Fix absolute path in tests --- CHANGELOG.md | 6 ++++++ tests/mods/modules/imagick/imagick-pdf.php | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbf8544d..d7d56f9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## Unreleased +## Release 0.109 + +#### Fixed +- Fixed absolute paths in tests + + ## Release 0.108 #### Added diff --git a/tests/mods/modules/imagick/imagick-pdf.php b/tests/mods/modules/imagick/imagick-pdf.php index b4082d02..bdbf0bfa 100644 --- a/tests/mods/modules/imagick/imagick-pdf.php +++ b/tests/mods/modules/imagick/imagick-pdf.php @@ -20,9 +20,12 @@ 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); }