public function toBeCalled() { if ($this->_isClass) { throw new Exception("Error `toBeCalled()` are are only available on functions not classes/instances."); } return Monkey::patch($this->_actual); }