Newer
Older
framework / tests / _support / View / MockTable.php
@Jim Parry Jim Parry on 25 Jul 2019 375 bytes Release 4.0.0-beta.4
<?php
namespace Tests\Support\View;

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');
	}

}