xref: /PHP-7.2/ext/phar/tests/bug74386.phpt (revision d6922ef8)
1--TEST--
2Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection
3--SKIPIF--
4<?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?>
5--FILE--
6<?php
7$r = new ReflectionMethod(Phar::class, '__construct');
8var_dump($r->getNumberOfRequiredParameters());
9var_dump($r->getNumberOfParameters());
10
11$r = new ReflectionMethod(PharData::class, '__construct');
12var_dump($r->getNumberOfRequiredParameters());
13var_dump($r->getNumberOfParameters());
14?>
15===DONE===
16--EXPECT--
17int(1)
18int(3)
19int(1)
20int(4)
21===DONE===
22