Skip to content

Commit

Permalink
Phpunit 8 deprecates expectExceptionMessageRegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Apr 9, 2020
1 parent 0506f8c commit c7a2aad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Symfony/Bridge/PhpUnit/Legacy/PolyfillTestCaseTrait.php
Expand Up @@ -95,6 +95,16 @@ public function expectExceptionMessage($message)
$property->setValue($this, $message);
}

/**
* @param string $messageRegExp
*
* @return void
*/
public function expectExceptionMessageMatches($messageRegExp)
{
$this->expectExceptionMessageRegExp($messageRegExp);
}

/**
* @param string $messageRegExp
*
Expand Down

0 comments on commit c7a2aad

Please sign in to comment.