ru_php/ext/phar/tests/bug74383.phpt

20 lines
346 B
PHP

--TEST--
Phar: bug #74383: Wrong reflection on Phar::running
--EXTENSIONS--
phar
--FILE--
<?php
$rc = new ReflectionClass(Phar::class);
$rm = $rc->getMethod("running");
echo $rm->getNumberOfParameters();
echo PHP_EOL;
echo $rm->getNumberOfRequiredParameters();
echo PHP_EOL;
echo (int) $rm->getParameters()[0]->isOptional();
?>
--EXPECT--
1
0
1