diff --git a/Legacy/PolyfillAssertTrait.php b/Legacy/PolyfillAssertTrait.php index 6b4941d5..1f05bbe5 100644 --- a/Legacy/PolyfillAssertTrait.php +++ b/Legacy/PolyfillAssertTrait.php @@ -554,6 +554,6 @@ public static function assertMatchesRegularExpression($pattern, $string, $messag */ public static function assertDoesNotMatchRegularExpression($pattern, $string, $message = '') { - static::assertNotRegExp($message, $string, $message); + static::assertNotRegExp($pattern, $string, $message); } }