From 9de969a2007bccc5172bf814a59315a17b4eaf64 Mon Sep 17 00:00:00 2001 From: Michael McEniry Date: Tue, 20 Aug 2024 12:55:16 -0500 Subject: [PATCH] Add CRLF test case for EregToPregMatchRector --- .../FuncCall/EregToPregMatchRector/Fixture/fixture3.php.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/Fixture/fixture3.php.inc b/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/Fixture/fixture3.php.inc index 24dd5b04a7e..29891883b7e 100644 --- a/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/Fixture/fixture3.php.inc +++ b/rules-tests/Php70/Rector/FuncCall/EregToPregMatchRector/Fixture/fixture3.php.inc @@ -9,6 +9,8 @@ function eregToPregMatch3() split('hi', 'hi, she said', 0); spliti('hi', 'hi, she said', 1); + + split("\r\n", "line 1\r\nline 2\r\n"); } ?> @@ -24,6 +26,8 @@ function eregToPregMatch3() preg_split('#hi#m', 'hi, she said', 1); preg_split('#hi#mi', 'hi, she said', 1); + + preg_split("#\r\n#m", "line 1\r\nline 2\r\n"); } ?>