blob: c14d1e02ffa294f56624235819a96e5fa5fa8483 [file] [log] [blame]
Joffrey Jaffeux9d140752012-06-06 01:40:18 +02001<?php
2
3class Mock_Libraries_Encrypt extends CI_Encrypt {
4
Claudio Galdiolo80b7a382015-01-29 10:25:01 -05005 // Override inaccessible protected method
Andrey Andreevf243ce12012-06-09 23:34:21 +03006 public function __call($method, $params)
7 {
8 if (is_callable(array($this, '_'.$method)))
9 {
10 return call_user_func_array(array($this, '_'.$method), $params);
11 }
Joffrey Jaffeux9d140752012-06-06 01:40:18 +020012
Andrey Andreevf243ce12012-06-09 23:34:21 +030013 throw new BadMethodCallException('Method '.$method.' was not found');
14 }
15
Claudio Galdiolo80b7a382015-01-29 10:25:01 -050016}