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

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

update php

File size: 321 bytes
Line 
1--TEST--
2Catch first exception in the multicatch
3--FILE--
4<?php
5
6require_once __DIR__ . '/exceptions.inc';
7
8try {
9        echo 'TRY' . PHP_EOL;
10        throw new Exception1;
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
20Exception1
21FINALLY
Note: See TracBrowser for help on using the repository browser.