summaryrefslogtreecommitdiffstats
path: root/tests/mocks/libraries/table.php
blob: 1a6ff8d3514863d71d882d651a6b2afbc3c4202b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class Mock_Libraries_Table extends CI_Table {
	
	// Overide inaccesible private or 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');
	}
}