You are here

public function ExceptionMessageRegExpTest::testRegexMessage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php \ExceptionMessageRegExpTest::testRegexMessage()

@expectedException \Exception @expectedExceptionMessageRegExp /^A polymorphic \w+ message/

File

vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php, line 21

Class

ExceptionMessageRegExpTest
@since Class available since Release 4.3.0 @covers PHPUnit_Framework_Constraint_ExceptionMessageRegExp

Code

public function testRegexMessage() {
  throw new Exception('A polymorphic exception message');
}