From 13490ae41929fa4d239c7cf6d417ca416fbd7f8d Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Sat, 5 Apr 2014 17:48:24 +1300 Subject: [PATCH] Skip test on php 5.3 Trying to fix: PHP Fatal error: Call to a member function getCurrency() on a non-object in /home/travis/build/piwik/piwik/plugins/Live/API.php on line 554 https://travis-ci.org/piwik/piwik/jobs/22318726 Note: this should not happen really and I'm puzzled... especially as it works on other PHP versions... --- tests/PHPUnit/Integration/AutoSuggestAPITest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PHPUnit/Integration/AutoSuggestAPITest.php b/tests/PHPUnit/Integration/AutoSuggestAPITest.php index d10e0f2a6c..77b754840d 100644 --- a/tests/PHPUnit/Integration/AutoSuggestAPITest.php +++ b/tests/PHPUnit/Integration/AutoSuggestAPITest.php @@ -31,7 +31,7 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase { // on Travis this test seg faults for no reason eg: https://github.com/piwik/piwik/commit/94d0ce393b2c496cda571571a0425af846406fda - $isPhp53 = strpos(PHP_VERSION, '5.3') == 0; + $isPhp53 = strpos(PHP_VERSION, '5.3') === 0; if($isPhp53) { $this->markTestSkipped("Skipping this test as it seg faults on php 5.3 (bug triggered on travis)"); } -- GitLab