You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
375 B
17 lines
375 B
<?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');
|
|
}
|
|
|
|
}
|
|
|