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

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

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