diff --git a/src/Context/Support.php b/src/Context/Support.php index 6c9f3dd7..67a16ab4 100644 --- a/src/Context/Support.php +++ b/src/Context/Support.php @@ -172,7 +172,12 @@ protected function check_that_json_string_contains_json_string( $actual_json, $e * @return bool Whether $actual_csv contains $expected_csv */ protected function check_that_csv_string_contains_values( $actual_csv, $expected_csv ) { - $actual_csv = array_map( 'str_getcsv', explode( PHP_EOL, $actual_csv ) ); + $actual_csv = array_map( + static function ( $str ) { + return str_getcsv( $str, ',', '"', '\\' ); + }, + explode( PHP_EOL, $actual_csv ) + ); if ( empty( $actual_csv ) ) { return false;