Merge pull request #124 from itexia/new-enums-for-docu

New Enum class for file processing (save + unparse) + Documentation
This commit is contained in:
Fonata
2018-03-07 09:35:01 +01:00
committed by GitHub
3 changed files with 40 additions and 4 deletions

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;