blob: 97fbb30bd1ab42fb65163ba5a27b6e4f8c7676b2 [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
Taufan Aditya8af88f32012-05-15 21:52:53 +07005 // Overide inaccesible protected method
Taufan Adityad44d7202012-03-28 16:24:23 +07006 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}