Download the PHP package r83dev/test-accessible without Composer
On this page you can find all versions of the php package r83dev/test-accessible. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download r83dev/test-accessible
More information about r83dev/test-accessible
Files in r83dev/test-accessible
Download r83dev/test-accessible
More information about r83dev/test-accessible
Files in r83dev/test-accessible
Vendor r83dev
Package test-accessible
Short Description Accessible trait to call protected methods, properties and constants in tests.
License MIT
Package test-accessible
Short Description Accessible trait to call protected methods, properties and constants in tests.
License MIT
Please rate this library. Is it a good library?
Informations about the package test-accessible
Testing Accessible Trait
A helper class for testing, especially for unit tests to access inaccessible methods or to get/inject properties.
Installation
Install via composer:
Usage
Use the AccessibleTrait
in your test:
Use one of the helper function to access private or protected stuff of an instantiated object.
Methods
Call inaccessible method
Get inaccessible property
Set inaccessible property
Get inaccessible constant
PHPUnitTest Example
This is just a features demo, not useful in terms of content.
Example of a unit to be tested:
Example unittest:
All versions of test-accessible with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package r83dev/test-accessible contains the following files
Loading the files please wait ....