Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (19 sloc) 0.278 kB
a142b6c @felipensp - New tests
felipensp authored
1 --TEST--
2 Closure 021: Throwing exception inside lambda
3 --FILE--
4 <?php
5
6 $foo = function() {
7 try {
8 throw new Exception('test!');
9 } catch(Exception $e) {
10 throw $e;
11 }
12 };
13
14 try {
15 $foo();
16 } catch (Exception $e) {
17 var_dump($e->getMessage());
18 }
19
20 ?>
21 --EXPECT--
22 string(5) "test!"
Something went wrong with that request. Please try again.