From 34d28f74355e9a979538f40813ed209226bba131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Fri, 2 Feb 2018 12:10:25 +0100 Subject: [PATCH] PHPUnit: Repaired file paths in autoQuotesDataProvider() --- tests/methods/ParseTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/methods/ParseTest.php b/tests/methods/ParseTest.php index c7f8fcb..b6c4036 100644 --- a/tests/methods/ParseTest.php +++ b/tests/methods/ParseTest.php @@ -152,8 +152,8 @@ class ParseTest extends PHPUnit\Framework\TestCase { public function autoQuotesDataProvider() { return array( - array('tests/methods/fixtures/auto-double-enclosure.csv', '"'), - array('tests/methods/fixtures/auto-single-enclosure.csv', "'"), + array('auto-double-enclosure.csv', '"'), + array('auto-single-enclosure.csv', "'"), ); } @@ -165,7 +165,7 @@ class ParseTest extends PHPUnit\Framework\TestCase { */ public function testAutoQuotes($file, $enclosure) { $csv = new parseCSV(); - $csv->auto($file, true, null, null, $enclosure); + $csv->auto(__DIR__ . '/../example_files/' . $file, true, null, null, $enclosure); $this->assertArrayHasKey('column1', $csv->data[0], 'Data parsed incorrectly with enclosure ' . $enclosure); $this->assertEquals('value1', $csv->data[0]['column1'], 'Data parsed incorrectly with enclosure ' . $enclosure); }