Skip to content

Instantly share code, notes, and snippets.

@coyl
coyl / a.php
Created May 16, 2016 19:35
How to test protected methods
/**
* Invoke protected or private method of object
*
* @param object $object
* @param string $method name of method to invoke
* @param mixed $arg1 args that passed to invoked method [optional]
*
* @return mixed
*