First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
17
tests/_support/View/MockTable.php
Normal file
17
tests/_support/View/MockTable.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user