xref: /php-src/ext/phar/tests/bug74383.phpt (revision 74859783)
1--TEST--
2Phar: bug #74383: Wrong reflection on Phar::running
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7$rc = new ReflectionClass(Phar::class);
8$rm = $rc->getMethod("running");
9echo $rm->getNumberOfParameters();
10echo PHP_EOL;
11echo $rm->getNumberOfRequiredParameters();
12echo PHP_EOL;
13echo (int) $rm->getParameters()[0]->isOptional();
14
15?>
16--EXPECT--
171
180
191
20