diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2016-09-01 19:43:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 19:43:43 +0200 |
commit | fa9b377e1d1fb24f46c9abd20aa69ad3a0eb15ca (patch) | |
tree | c87c239db3de225c52ad074ddb2172ad7c1d433d /test | |
parent | 7f8b31e82bf4612f10a2bfc660203e117e13ffc1 (diff) | |
parent | b61b7d638f0ca61def57bfa8656db375945daf11 (diff) | |
download | csv-fa9b377e1d1fb24f46c9abd20aa69ad3a0eb15ca.zip csv-fa9b377e1d1fb24f46c9abd20aa69ad3a0eb15ca.tar.gz csv-fa9b377e1d1fb24f46c9abd20aa69ad3a0eb15ca.tar.bz2 |
Merge pull request #175 from mahngiel/header-content-type-csv
Change Output header Content-Type to text/csv
Diffstat (limited to 'test')
-rw-r--r-- | test/CsvTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CsvTest.php b/test/CsvTest.php index 32115fb..f25a430 100644 --- a/test/CsvTest.php +++ b/test/CsvTest.php @@ -94,7 +94,10 @@ class CsvTest extends AbstractTestCase } $this->csv->output('test.csv'); $headers = \xdebug_get_headers(); - $this->assertSame($headers[0], 'Content-Type: application/octet-stream'); + + // Due to the variety of ways the xdebug expresses Content-Type of text files, + // we cannot count on complete string matching. + $this->assertContains('content-type: text/csv', strtolower($headers[0])); $this->assertSame($headers[1], 'Content-Transfer-Encoding: binary'); $this->assertSame($headers[2], 'Content-Disposition: attachment; filename="test.csv"'); } |