summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionObject_isInternal_error.phpt
blob: 996add6cd45b36ffe86823dd12eccd717271088f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
ReflectionObject::isInternal() - invalid params
--FILE--
<?php

$r1 = new ReflectionObject(new 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