1--TEST--
2new ast\Node() throwing
3--SKIPIF--
4<?php if (!extension_loaded("ast")) print "skip"; ?>
5--FILE--
6<?php
7
8try {
9    new ast\Node('invalid');
10} catch (TypeError $e) {
11    echo "Caught {$e->getMessage()}\n";
12}
13--EXPECTF--
14Caught %s, string given
15