From 5b1002a6774d56338d41a174f32868ec41577e04 Mon Sep 17 00:00:00 2001 From: Susann Sgorzaly Date: Mon, 26 Feb 2018 10:06:59 +0100 Subject: [PATCH] test correction --- tests/methods/ParseTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/methods/ParseTest.php b/tests/methods/ParseTest.php index 161ec29..261f15b 100644 --- a/tests/methods/ParseTest.php +++ b/tests/methods/ParseTest.php @@ -161,6 +161,12 @@ class ParseTest extends TestCase * @depends testSepRowAutoDetection */ public function testAutoDetectFileHasHeading(){ + if (!function_exists('array_column')) { + // getDatatypes requires array_column, but that + // function is only available in PHP >= 5.5 + return; + } + $this->csv->auto(__DIR__ . '/fixtures/datatype.csv'); $this->assertTrue($this->csv->autoDetectFileHasHeading());