diff options
Diffstat (limited to 'test/CsvTest.php')
-rw-r--r-- | test/CsvTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CsvTest.php b/test/CsvTest.php index 267790d..c488afb 100644 --- a/test/CsvTest.php +++ b/test/CsvTest.php @@ -112,6 +112,14 @@ class CsvTest extends PHPUnit_Framework_TestCase $this->assertTrue($this->csv->hasBOMOnOutput()); } + public function testAddBOMSequences() + { + $this->csv->setBOMOnOutput(true); + $expected = chr(239).chr(187).chr(191)."john,doe,john.doe@example.com".PHP_EOL + ."jane,doe,jane.doe@example.com".PHP_EOL; + $this->assertSame($expected, $this->csv->__toString()); + } + /** * @expectedException InvalidArgumentException * @expectedExceptionMessage `$nb_rows` must be a valid positive integer |