1--TEST--
2ReflectionFunction constructor errors
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8
9$a = new ReflectionFunction(array(1, 2, 3));
10try {
11	$a = new ReflectionFunction('nonExistentFunction');
12} catch (Exception $e) {
13	echo $e->getMessage();
14}
15$a = new ReflectionFunction();
16$a = new ReflectionFunction(1, 2);
17?>
18--EXPECTF--
19Warning: ReflectionFunction::__construct() expects parameter 1 to be string, array given in %s on line %d
20Function nonExistentFunction() does not exist
21Warning: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in %s on line %d
22
23Warning: ReflectionFunction::__construct() expects exactly 1 parameter, 2 given in %s on line %d
24