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

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

update php

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