Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8fefe3

Browse files
committed
remove custom CSV escape character from tests
1 parenta0b0dff commite8fefe3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function testEncodeCustomSettings()
158158
$this->encoder =newCsvEncoder([
159159
CsvEncoder::DELIMITER_KEY =>';',
160160
CsvEncoder::ENCLOSURE_KEY =>"'",
161-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
161+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
162162
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
163163
]);
164164

@@ -184,7 +184,7 @@ public function testEncodeCustomSettingsPassedInContext()
184184
,$this->encoder->encode($value,'csv', [
185185
CsvEncoder::DELIMITER_KEY =>';',
186186
CsvEncoder::ENCLOSURE_KEY =>"'",
187-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
187+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
188188
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
189189
]));
190190
}
@@ -194,7 +194,7 @@ public function testEncodeCustomSettingsPassedInConstructor()
194194
$encoder =newCsvEncoder([
195195
CsvEncoder::DELIMITER_KEY =>';',
196196
CsvEncoder::ENCLOSURE_KEY =>"'",
197-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
197+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
198198
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
199199
]);
200200
$value = ['a' =>'he\'llo','c' => ['d' =>'foo']];
@@ -583,7 +583,7 @@ public function testDecodeCustomSettings()
583583
$this->encoder =newCsvEncoder([
584584
CsvEncoder::DELIMITER_KEY =>';',
585585
CsvEncoder::ENCLOSURE_KEY =>"'",
586-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
586+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
587587
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
588588
]);
589589

@@ -605,7 +605,7 @@ public function testDecodeCustomSettingsPassedInContext()
605605
,'csv', [
606606
CsvEncoder::DELIMITER_KEY =>';',
607607
CsvEncoder::ENCLOSURE_KEY =>"'",
608-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
608+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
609609
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
610610
]));
611611
}
@@ -615,7 +615,7 @@ public function testDecodeCustomSettingsPassedInConstructor()
615615
$encoder =newCsvEncoder([
616616
CsvEncoder::DELIMITER_KEY =>';',
617617
CsvEncoder::ENCLOSURE_KEY =>"'",
618-
CsvEncoder::ESCAPE_CHAR_KEY =>'|',
618+
CsvEncoder::ESCAPE_CHAR_KEY =>'',
619619
CsvEncoder::KEY_SEPARATOR_KEY =>'-',
620620
CsvEncoder::AS_COLLECTION_KEY =>true,// Can be removed in 5.0
621621
]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp