public function ExceptionMessageRegExpTest::testRegexMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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');
}