Newer
Older
framework / system / Test / Mock / MockTable.php
@Lonnie Ezell Lonnie Ezell on 24 Feb 2020 378 bytes Release 4.0.0
<?php namespace CodeIgniter\Test\Mock;

class MockTable extends \CodeIgniter\View\Table {

	// Override inaccessible protected method
	public function __call($method, $params)
	{
		if (is_callable([$this, '_' . $method]))
		{
			return call_user_func_array([$this, '_' . $method], $params);
		}

		throw new BadMethodCallException('Method ' . $method . ' was not found');
	}

}