v1.1
- New function allowing to call private method on object.
Example:
class TestClass
{
private function saltPassword($string)
{
return $string . 'salt';
}
}
Test result:
$testClass = new TestClass();
$result = \Spamer\DependencyMocker\Mocker::callPrivateFunction($testClass, 'saltPassword', ['string']);
\Tester\Assert::same('stringsalt', $result);