You are here

public function ExceptionMessageTest::testLiteralMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageTest.php \ExceptionMessageTest::testLiteralMessage()

@expectedException \Exception @expectedExceptionMessage A literal exception message

File

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

Class

ExceptionMessageTest
@since Class available since Release 4.0.20 @covers PHPUnit_Framework_Constraint_ExceptionMessage

Code

public function testLiteralMessage() {
  throw new Exception('A literal exception message');
}