You are here

public function ExceptionMessageRegExpTest::testRegexMessageExtreme in Zircon Profile 8.0

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

@expectedException \Exception @expectedExceptionMessageRegExp /^a poly[a-z]+ [a-zA-Z0-9_]+ me(s){2}age$/i

File

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

Class

ExceptionMessageRegExpTest
@since Class available since Release 4.3.0 @covers PHPUnit_Framework_Constraint_ExceptionMessageRegExp

Code

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