new test for setting new headers before save (comments #82)

This commit is contained in:
Susann Sgorzaly
2018-02-27 14:33:26 +01:00
parent 48a3cdbc5c
commit 5daa422aca

View File

@@ -49,6 +49,13 @@ class SaveTest extends TestCase
$this->saveAndCompare($expected);
}
public function testSaveWithNewHeader() {
$this->csv->linefeed = "\n";
$this->csv->titles = array("NewTitle");
$expected = "NewTitle\n0444\n5555\n";
$this->saveAndCompare($expected);
}
public function testSaveWithoutHeader() {
$this->csv->linefeed = "\n";
$this->csv->heading = false;