php-src/ext/reflection/tests/ReflectionObject_isInternal_error.phpt

16 lines
399 B
PHP

--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