public function ExceptionStackTest::testNestedExceptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/_files/ExceptionStackTest.php \ExceptionStackTest::testNestedExceptions()
File
- vendor/
phpunit/ phpunit/ tests/ _files/ ExceptionStackTest.php, line 14
Class
Code
public function testNestedExceptions() {
$exceptionThree = new Exception('Three');
$exceptionTwo = new InvalidArgumentException('Two', 0, $exceptionThree);
$exceptionOne = new Exception('One', 0, $exceptionTwo);
throw $exceptionOne;
}