-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
Sometimes I get into cases where I want to use the assertMatchesPattern
like other assertions in a static method.
Maybe the assertMatchesPattern
could be changed from:
protected function assertMatchesPattern($pattern, $value, string $message = '') : void
{
TestCase::assertThat($value, self::matchesPattern($pattern, $this->backtrace), $message);
}
protected function static assertMatchesPattern($pattern, $value, string $message = '', ?Backtrace $backtrace = null) : void
{
TestCase::assertThat($value, self::matchesPattern($pattern, ?Backtrace $backtrace = null), $message);
}
As it would be a bc break it could only be done in a new major release.
Alexandre-T