Download the PHP package snailweb/php-tests-helpers without Composer
On this page you can find all versions of the php package snailweb/php-tests-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-tests-helpers
php-tests-helpers
Helpers for PHP tests
Usage
AccessProtectedTrait
Helper to invoke methods and to get/set attributes values with private/protected visibility
TestIteratorTrait
Helper to automatically apply Iterator tests for a class.
Requirements :
- The tested class must implement Iterator (that's the point of doing this ...)
- The tested class constructor must accept no parameters
- The test class must call setUpInterator() with class name, and optionally key name and array name (example shows defaults)
Note: if you need to test the constructor of your class you must do this :
TestSplSubjectTrait
Helper to automatically apply SplSubject tests for a class.
Requirements :
- The tested class must implement SplSubject (that's the point of doing this ...)
- The tested class constructor must accept no parameters
- The test class must call setUpSplSubject() with class name, and optionally observers name (example shows defaults)
All versions of php-tests-helpers with dependencies
PHP Build Version
Package Version
No informations.
The package snailweb/php-tests-helpers contains the following files
Loading the files please wait ....