From 63932f67a4219eb54358e7156d70d19d1ed99282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sun, 21 Jan 2018 16:12:45 +0100 Subject: [PATCH] ParseTest: skip 'test_Piwik_data' in PHP 5.4 --- tests/methods/ParseTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/methods/ParseTest.php b/tests/methods/ParseTest.php index a2c248d..ce0fe83 100644 --- a/tests/methods/ParseTest.php +++ b/tests/methods/ParseTest.php @@ -75,6 +75,10 @@ class ParseTest extends PHPUnit\Framework\TestCase { } public function test_Piwik_data() { + if (!function_exists('array_column')) { + // function only available in PHP >= 5.5 + return; + } $this->csv->use_mb_convert_encoding = true; $this->csv->output_encoding = 'UTF-8'; $this->csv->auto(__DIR__ . '/../example_files/Piwik_API_download.csv');