New testing wrapper to circumvent object access
authorAdam Roses Wight <awight@wikimedia.org>
Fri, 27 Feb 2015 17:22:16 +0000 (09:22 -0800)
committerAdam Roses Wight <awight@wikimedia.org>
Tue, 17 Mar 2015 06:58:36 +0000 (23:58 -0700)
commit9cfbbbe9467adb16b81db0b1ba93f218022a9461
tree3bf01880daa07f18cf6d3869fe44f15c9a5490b8
parentcbed702308d8590bd2d15528af5f88c38417c436
New testing wrapper to circumvent object access

The new TestingAccessWrapper class provides a convenient way to make
all of an object's methods and properties public.

TODO: We should organize test helpers into a source directory.  Note that the
helper and its test are in the same directory.

Change-Id: I958d55df18c74e9d2b25d98cd0316989a0fbbe6f
tests/TestsAutoLoader.php
tests/phpunit/data/helpers/WellProtectedClass.php [new file with mode: 0644]
tests/phpunit/includes/TestingAccessWrapper.php [new file with mode: 0644]
tests/phpunit/includes/TestingAccessWrapperTest.php [new file with mode: 0644]