Registry / testing / wikimedia-testing-access-wrapper

wikimedia-testing-access-wrapper

JSON →
library4.0.0phppackagistunverified

A simple helper class to access non-public elements of a class when testing.

composer require wikimedia/testing-access-wrapper
INSTALL
IMPORT
SIG · WIKIMEDIA-TESTING-
W
wikimedia-testing-access-wrapper
testingphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestingAccessWrapper
use Wikimedia\TestingAccessWrapper\TestingAccessWrapper;

Access private or protected methods and properties for testing.

use Wikimedia\TestingAccessWrapper\TestingAccessWrapper; $wrapper = TestingAccessWrapper::newFromClass(MyClass::class); $value = $wrapper->privateMethod();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
wikimedia-testing-access-wrapper — pip install wikimedia-testing-access-wrapper · libregistry