blob: f1859398f20ff5790dab79f04879cfb5b3df3eae [file] [log] [blame]
Joffrey Jaffeux9d140752012-06-06 01:40:18 +02001<?php
2
3class Mock_Libraries_Encrypt extends CI_Encrypt {
4
Andrey Andreevf243ce12012-06-09 23:34:21 +03005 // Overide inaccesible protected method
6 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
Joffrey Jaffeux9d140752012-06-06 01:40:18 +020016}