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

18 lines
527 B
PHP

--TEST--
ReflectionClass::getProperties() - invalid arguments
--CREDITS--
Robin Fernandes <robinf@php.net>
Steve Seear <stevseea@php.net>
--FILE--
<?php
$rc = new ReflectionClass("ReflectionClass");
echo "\nTest invalid arguments:";
$rc->getProperties('X');
$rc->getProperties('X', true);
?>
--EXPECTF--
Test invalid arguments:
Warning: ReflectionClass::getProperties() expects parameter 1 to be long, string given in %s on line 4
Warning: ReflectionClass::getProperties() expects at most 1 parameter, 2 given in %s on line 5