aivus / test-helper
Helper package for testing
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/aivus/test-helper
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.7.*
- satooshi/php-coveralls: ~0.6@stable
This package is auto-updated.
Last update: 2019-08-14 15:33:49 UTC
README
This package provide simple helpers for testing.
API
TestHelper::getPropertyValue($classOrObject, $propertyName)
This method allows to get property value of class (if property is static) or object (include private/protected)
TestHelper::setPropertyValue($classOrObject, $propertyName, $propertyValue)
This method allows to set value of class (if property is static) or object property
TestHelper::getMethod($className, $methodName)
This method allows to get class method (include private/protected)
getProperty($classNameOrObject, $propertyName)
This method allows to get class property (include private/protected)
invokeMethod($classNameOrObject, $methodName, [$parameters])
This method provide ability to call private/protected methods in the object