source: src/router/php7/Zend/tests/try/try_multicatch_007.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 384 bytes
Line 
1--TEST--
2Catch second exception in the second multicatch
3--FILE--
4<?php
5require_once __DIR__ . '/exceptions.inc';
6
7try {
8        echo 'TRY' . PHP_EOL;
9        throw new Exception4;
10} catch(Exception1 | Exception2 $e) {
11        echo get_class($e) . PHP_EOL;
12} catch(Exception3 | Exception4 $e) {
13        echo get_class($e) . PHP_EOL;
14} finally {
15        echo 'FINALLY' . PHP_EOL;
16}
17?>
18--EXPECT--
19TRY
20Exception4
21FINALLY
22
Note: See TracBrowser for help on using the repository browser.