summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isInternal_error.phpt
blob: ef69a4c39398d1bd6fd1130d9d2985bc6093f0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
ReflectionClass::isInternal() - invalid params
--FILE--
<?php
$r1 = new ReflectionClass("stdClass");
var_dump($r1->isInternal('X'));
var_dump($r1->isInternal('X', true));
?>
--EXPECTF--
Warning: ReflectionClass::isInternal() expects exactly 0 parameters, 1 given in %s on line %d
NULL

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