mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
18 lines
527 B
PHP
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
|