File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ All Notable changes to `Csv` will be documented in this file
14
14
15
15
### Fixed
16
16
17
- - None
17
+ - fix writer filter [ # 421 ] ( https://github.com/thephpleague/csv/pull/421 ) by [ LosingBattle ] ( https://github.com/cpj555 )
18
18
19
19
### Removed
20
20
Original file line number Diff line number Diff line change @@ -50,7 +50,16 @@ public function testEncloseAll(): void
50
50
EncloseField::addTo ($ csv , "\t\x1f" );
51
51
self ::assertContains (EncloseField::getFiltername (), stream_get_filters ());
52
52
$ csv ->insertAll ($ this ->records );
53
- self ::assertStringContainsString ('"Grand Cherokee" ' , $ csv ->getContent ());
53
+ $ expected = <<<CSV
54
+ "Year"|"Make"|"Model"|"Description"|"Price"
55
+ "1997"|"Ford"|"E350"|"ac,abs,moon"|"3000.00"
56
+ "1999"|"Chevy"|"Venture ""Extended Edition"""|""|"4900.00"
57
+ "1999"|"Chevy"|"Venture ""Extended Edition, Very Large"""|""|"5000.00"
58
+ "1996"|"Jeep"|"Grand Cherokee"|"MUST SELL!
59
+ air, moon roof, loaded"|"4799.00"
60
+
61
+ CSV ;
62
+ self ::assertStringContainsString ($ expected , $ csv ->toString ());
54
63
}
55
64
56
65
/**
You can’t perform that action at this time.
0 commit comments