1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Test fix.

This commit is contained in:
Cameron
2020-12-10 11:03:36 -08:00
parent 375a3941fe
commit bd3a181e27

View File

@@ -27,7 +27,7 @@
} }
catch(Exception $e) catch(Exception $e)
{ {
$this->assertTrue(false, $e->getMessage()); self::assertTrue(false, $e->getMessage());
} }
$this->thm->setCache(false); $this->thm->setCache(false);
@@ -154,7 +154,9 @@
); );
// WebP support added in PHP 7.1+ // WebP support added in PHP 7.1+
if (version_compare(phpversion(), '7.0', '>')) $ver = (float) phpversion();
if ($ver > 7.0)
{ {
// Test WebP format resize. // Test WebP format resize.
$tests[] = array( $tests[] = array(
@@ -197,7 +199,7 @@
rename($generatedImage,codecept_output_dir()."sendImage_".time()."_index_".$index.".".$ext); rename($generatedImage,codecept_output_dir()."sendImage_".time()."_index_".$index.".".$ext);
} }
$this->assertTrue($status, "Image Index #".$index." failed the image-comparison check"); self::assertTrue($status, "Image Index #".$index." failed the image-comparison check");
} }