From cf8acf1ca31deaa786a991b5da9d52bf31ca2c6a Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Sat, 17 Apr 2021 09:31:42 +0200 Subject: [PATCH] Adding test for #421 --- CHANGELOG.md | 2 +- src/EncloseFieldTest.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0862133..081909c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ All Notable changes to `Csv` will be documented in this file ### Fixed -- None +- fix writer filter [#421](https://github.com/thephpleague/csv/pull/421) by [LosingBattle](https://github.com/cpj555) ### Removed diff --git a/src/EncloseFieldTest.php b/src/EncloseFieldTest.php index b67b006b..fdfc56dc 100644 --- a/src/EncloseFieldTest.php +++ b/src/EncloseFieldTest.php @@ -50,7 +50,16 @@ public function testEncloseAll(): void EncloseField::addTo($csv, "\t\x1f"); self::assertContains(EncloseField::getFiltername(), stream_get_filters()); $csv->insertAll($this->records); - self::assertStringContainsString('"Grand Cherokee"', $csv->getContent()); + $expected = <<toString()); } /**