diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CsvTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CsvTest.php b/test/CsvTest.php index f7e65ed..267790d 100644 --- a/test/CsvTest.php +++ b/test/CsvTest.php @@ -105,6 +105,13 @@ class CsvTest extends PHPUnit_Framework_TestCase $this->assertSame([','], $this->csv->detectDelimiterList()); } + public function testBOMSettings() + { + $this->assertFalse($this->csv->hasBOMOnOutput()); + $this->csv->setBOMOnOutput(true); + $this->assertTrue($this->csv->hasBOMOnOutput()); + } + /** * @expectedException InvalidArgumentException * @expectedExceptionMessage `$nb_rows` must be a valid positive integer |