chore(expectations): rename 'toMatchRegEx' to 'toMatch'

This commit is contained in:
Owen Voke
2020-09-21 16:02:08 +01:00
parent f76f353c32
commit e3e4815b55
3 changed files with 10 additions and 10 deletions

View File

@ -508,7 +508,7 @@ final class Expectation
/**
* Asserts that the value matches a regular expression.
*/
public function toMatchRegEx(string $expression): Expectation
public function toMatch(string $expression): Expectation
{
Assert::assertMatchesRegularExpression($expression, $this->value);