Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Framework/Fixture.php')
-rw-r--r--tests/PHPUnit/Framework/Fixture.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/Fixture.php b/tests/PHPUnit/Framework/Fixture.php
index 27a4ce4692..5fa9baaffd 100644
--- a/tests/PHPUnit/Framework/Fixture.php
+++ b/tests/PHPUnit/Framework/Fixture.php
@@ -794,6 +794,10 @@ class Fixture extends \PHPUnit_Framework_Assert
*/
public static function canImagesBeIncludedInScheduledReports()
{
+ if(!function_exists('gd_info')) {
+ echo "GD is not installed so cannot run these tests. please enable GD in PHP!\n";
+ return false;
+ }
$gdInfo = gd_info();
return
stristr(php_uname(), self::IMAGES_GENERATED_ONLY_FOR_OS) &&