From 823f51c4f0358518cbd409fbff38a1f63afbfd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sun, 21 Jan 2018 21:29:16 +0100 Subject: [PATCH] Added PHPUnit test to save without header --- tests/methods/SaveTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/methods/SaveTest.php b/tests/methods/SaveTest.php index 4780b87..de66395 100644 --- a/tests/methods/SaveTest.php +++ b/tests/methods/SaveTest.php @@ -44,6 +44,13 @@ class SaveTest extends PHPUnit\Framework\TestCase { $this->saveAndCompare($expected); } + public function testSaveWithoutHeader() { + $this->csv->linefeed = "\n"; + $this->csv->heading = false; + $expected = "0444\n5555\n"; + $this->saveAndCompare($expected); + } + public function testAllQuotes() { $this->csv->enclose_all = true; $expected = "\"SMS\"\r\"0444\"\r\"5555\"\r";