Fix TestingAccessWrapper private property access and parent classes
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Sep 2015 15:32:37 +0000 (11:32 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Sep 2015 15:44:03 +0000 (11:44 -0400)
commit1e21a4bcab1826cd95ca020cd14d52bac30f3c27
treecd68e26dfc3a63cbf6b29a7488dc03c6aa1cf963
parent6e026429536c0c86302cf2cf7d15e6f43877d85e
Fix TestingAccessWrapper private property access and parent classes

PHP's reflection mechanism is weird: reflecting on a private method will
find it even if it's defined in a parent class, while reflecting on a
private property just fails.

It would likely be more useful if TestingAccessWrapper could find
private properties defined in parent classes, so let's make that happen.

Change-Id: I9cfdde2694136d0e4559cc419a528762ea14ae4b
tests/phpunit/data/helpers/WellProtectedClass.php
tests/phpunit/includes/TestingAccessWrapper.php
tests/phpunit/includes/TestingAccessWrapperTest.php