|
|
1.1 misho 1: --TEST--
2: Testing indirect method call and exceptions
3: --FILE--
4: <?php
5:
6: class foo {
7: public function __construct() {
8: throw new Exception('foobar');
9: }
10: }
11:
12: try {
13: $X = (new foo)->Inexistent(3);
14: } catch (Exception $e) {
15: var_dump($e->getMessage()); // foobar
16: }
17:
18: ?>
19: --EXPECT--
20: string(6) "foobar"