public function PHPUnit_Framework_TestCase::setExpectedExceptionRegExp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::setExpectedExceptionRegExp()
@since Method available since Release 4.3.0
Parameters
mixed $exceptionName:
string $exceptionMessageRegExp:
int $exceptionCode:
2 calls to PHPUnit_Framework_TestCase::setExpectedExceptionRegExp()
- PHPUnit_Framework_TestCase::setExpectedExceptionFromAnnotation in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php - @since Method available since Release 3.4.0
- Util_TestTest::testTestWithThrowsProperExceptionIfDatasetCannotBeParsed in vendor/
phpunit/ phpunit/ tests/ Util/ TestTest.php - @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 463
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public function setExpectedExceptionRegExp($exceptionName, $exceptionMessageRegExp = '', $exceptionCode = null) {
$this->expectedException = $exceptionName;
$this->expectedExceptionMessageRegExp = $exceptionMessageRegExp;
$this->expectedExceptionCode = $exceptionCode;
}