blob: c14d1e02ffa294f56624235819a96e5fa5fa8483 [file] [log] [blame]
<?php
class Mock_Libraries_Encrypt extends CI_Encrypt {
// Override inaccessible protected method
public function __call($method, $params)
{
if (is_callable(array($this, '_'.$method)))
{
return call_user_func_array(array($this, '_'.$method), $params);
}
throw new BadMethodCallException('Method '.$method.' was not found');
}
}