You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps it would be better to avoid this magic behavior (there is no indication you have done anything wrong) and add an extra assert for those tester expressions (with appropriate name) and keep this only for regular expressions, to avoid confusion. Or vice versa.
The text was updated successfully, but these errors were encountered:
Description
Until you realize, that your regex pattern cannot be delimited with
/
, the function does not work properly.Steps To Reproduce
fails:
Assert::match('/^foo$/', 'foo');
passes:
Assert::match('#^foo$#', 'foo');
Perhaps it would be better to avoid this magic behavior (there is no indication you have done anything wrong) and add an extra assert for those tester expressions (with appropriate name) and keep this only for regular expressions, to avoid confusion. Or vice versa.
The text was updated successfully, but these errors were encountered: