aivus/test-helper

This package is abandoned and no longer maintained. No replacement package was suggested.

Helper package for testing

v0.1 2015-06-14 22:33 UTC

This package is auto-updated.

Last update: 2019-08-14 15:33:49 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version

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