Skip to content

Commit

Permalink
Add CRLF test case for EregToPregMatchRector
Browse files Browse the repository at this point in the history
  • Loading branch information
mcenirm committed Aug 20, 2024
1 parent 98f6159 commit 9de969a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

?>
Expand All @@ -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");
}

?>

0 comments on commit 9de969a

Please sign in to comment.