blob: 1a6ff8d3514863d71d882d651a6b2afbc3c4202b [file] [log] [blame]
Taufan Adityaac5373a2012-03-28 16:03:38 +07001<?php
2
Taufan Adityad44d7202012-03-28 16:24:23 +07003class Mock_Libraries_Table extends CI_Table {
4
5 // Overide inaccesible private or 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 }
12
13 throw new BadMethodCallException('Method '.$method.' was not found');
14 }
15}