summaryrefslogtreecommitdiff
path: root/Zend/tests/try/try_multicatch_005.phpt
blob: cc3fc890faeafb2138a38177057103c0488fd1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Catch exception in the nested multicatch
--FILE--
<?php

require_once __DIR__ . '/exceptions.inc';

try {
	try {
		echo 'TRY' . PHP_EOL;
		throw new Exception3;
	} catch (Exception1 | Exception3 $e) {
		echo get_class($e) . PHP_EOL;
	}
} catch(Exception2 | Exception3 $e) {
	echo 'Should never be executed';
} finally {
	echo 'FINALLY' . PHP_EOL;
}

?>
--EXPECT--
TRY
Exception3
FINALLY