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