Added PHPUnit test to save without header

This commit is contained in:
Christian Bläul
2018-01-21 21:29:16 +01:00
committed by Fonata
parent 488b8f9d9b
commit 823f51c4f0

View File

@@ -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";