1--TEST--
2ReflectionClass::newInstanceArgs() - wrong arg type
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8class A {
9	public function __construct($a, $b) {
10		echo "In constructor of class B with arg $a\n";
11	}
12}
13$rc = new ReflectionClass('A');
14$a = $rc->newInstanceArgs('x');
15var_dump($a);
16
17?>
18--EXPECTF--
19
20Catchable fatal error: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s on line 8
21