Skip to content

Commit 2f6b417

Browse files
author
Oleksii Korshenko
committed
MAGETWO-64900: [GitHub] [Issue] Travis Does not support freetype on PHP 5.6
- added workaround for Travis PHP 5.6.29 environment
1 parent a328bbe commit 2f6b417

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/integration/testsuite/Magento/Framework/Image/Adapter/InterfaceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,9 @@ public function cropDataProvider()
547547
*/
548548
public function testCreatePngFromString($pixel1, $expectedColor1, $pixel2, $expectedColor2, $adapterType)
549549
{
550-
if (!function_exists('imagettfbbox')) {
550+
if (!function_exists('imagettfbbox')
551+
|| (getenv('TRAVIS') && getenv('TRAVIS_PHP_VERSION') == '5.6.29')
552+
) {
551553
$this->markTestSkipped('Workaround for problem with imagettfbbox() function on Travis');
552554
}
553555
$adapter = $this->_getAdapter($adapterType);

0 commit comments

Comments
 (0)