1--TEST--
2Test ReflectionProperty class errors.
3--FILE--
4<?php
5
6class C {
7    public static $p;
8}
9
10try {
11    new ReflectionProperty();
12} catch (TypeError $re) {
13    echo "Ok - ".$re->getMessage().PHP_EOL;
14}
15try {
16    new ReflectionProperty('C::p');
17} catch (TypeError $re) {
18    echo "Ok - ".$re->getMessage().PHP_EOL;
19}
20
21try {
22    new ReflectionProperty('C', 'p', 'x');
23} catch (TypeError $re) {
24    echo "Ok - ".$re->getMessage().PHP_EOL;
25}
26
27?>
28--EXPECT--
29Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 0 given
30Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 1 given
31Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 3 given
32