summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-01-15 12:55:32 +0100
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-01-15 13:00:30 +0100
commit22560a9980684a124c1dc629aaec15cef77c49ab (patch)
treeeeeec90ddc97aaaf50c741d920621303cf4b8393 /test
parenta7f92b56d37bfce593903b4afe211ce9429188ab (diff)
downloadcsv-22560a9980684a124c1dc629aaec15cef77c49ab.zip
csv-22560a9980684a124c1dc629aaec15cef77c49ab.tar.gz
csv-22560a9980684a124c1dc629aaec15cef77c49ab.tar.bz2
adding BOM to output #65
Diffstat (limited to 'test')
-rw-r--r--test/CsvTest.php7
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