xref: /PHP-7.2/ext/phar/tests/bug74383.phpt (revision f1d7e3ca)
1--TEST--
2Phar: bug #74383: Wrong reflection on Phar::running
3--SKIPIF--
4<?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?>
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