1234567891011121314151617181920 |
- --TEST--
- Testing indirect method call and exceptions
- --FILE--
- <?php
- class foo {
- public function __construct() {
- throw new Exception('foobar');
- }
- }
- try {
- $X = (new foo)->Inexistent(3);
- } catch (Exception $e) {
- var_dump($e->getMessage());
- }
- ?>
- --EXPECT--
- string(6) "foobar"
|