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
16?>
17--EXPECTF--
18object(ReflectionClass)#%d (1) {
19  ["name"]=>
20  string(1) "A"
21}
22