1--TEST--
2ReflectionMethod methods - wrong num args
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8
9try {
10    new ReflectionMethod();
11} catch (ArgumentCountError $re) {
12    echo "Ok - ".$re->getMessage().PHP_EOL;
13}
14try {
15    new ReflectionMethod('a', 'b', 'c');
16} catch (ArgumentCountError $re) {
17    echo "Ok - ".$re->getMessage().PHP_EOL;
18}
19
20?>
21--EXPECT--
22Ok - ReflectionMethod::__construct() expects at least 1 argument, 0 given
23Ok - ReflectionMethod::__construct() expects at most 2 arguments, 3 given
24