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

15 lines
394 B
Plaintext
Raw Normal View History

2007-07-11 20:16:43 +00:00
--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
2007-07-11 20:16:43 +00:00
NULL
Warning: ReflectionClass::isInternal() expects exactly 0 parameters, 2 given in %s on line %d
2007-07-11 20:16:43 +00:00
NULL