From 79038d3c6381f78c37b816428c9d3279019dd782 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 18 Nov 2017 23:41:37 +0800 Subject: [PATCH] Add PHP 5.5 in Travis CI --- .travis.yml | 1 + tests/AuthControllerTest.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 881e7144..9cb5e04a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,7 @@ script: ./vendor/bin/phpunit matrix: include: + - php: 5.5 - php: 5.6 - php: 7.0 script: diff --git a/tests/AuthControllerTest.php b/tests/AuthControllerTest.php index 3bf51ccd..be8b0313 100644 --- a/tests/AuthControllerTest.php +++ b/tests/AuthControllerTest.php @@ -713,6 +713,10 @@ class AuthControllerTest extends TestCase public function testCaptcha() { + if (!function_exists('imagettfbbox') || getenv('TRAVIS_PHP_VERSION' == '5.5')) { + $this->markTestSkipped('There are some problems with PHP 5.5 on Travis CI'); + } + $this->get('/auth/captcha') ->assertResponseStatus(200) ->seeHeader('Content-Type', 'image/png')