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

require_once __DIR__ . '/exceptions.inc';

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

?>
--EXPECT--
TRY
Exception1
FINALLY