summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isInstantiable_error.phpt
blob: 52be239121500cf693a38c6a9e2695d750dc3339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
ReflectionClass::IsInstantiable()
--FILE--
<?php
class privateCtorOld {
	private function privateCtorOld() {}
}
$reflectionClass = new ReflectionClass("privateCtorOld");

var_dump($reflectionClass->IsInstantiable('X'));
var_dump($reflectionClass->IsInstantiable(0, null));

?>
--EXPECTF--
Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
NULL

Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d
NULL