1--TEST--
2Test ReflectionProperty::getDeclaringClass() with inherited properties.
3--FILE--
4<?php
5
6class A {
7    public $prop;
8}
9
10class B extends A {
11}
12
13$propInfo = new ReflectionProperty('B', 'prop');
14var_dump($propInfo->getDeclaringClass());
15
16echo "Wrong number of params:\n";
17$propInfo->getDeclaringClass(1);
18
19?>
20--EXPECTF--
21object(ReflectionClass)#%d (1) {
22  ["name"]=>
23  string(1) "A"
24}
25Wrong number of params:
26
27Warning: ReflectionProperty::getDeclaringClass() expects exactly 0 parameters, 1 given in %s on line %d
28