ajout SAE PHP 19/20 Meilleure note de la promo
This commit is contained in:
16
SAE2.02_Application_WEB/tests/mocks/libraries/table.php
Normal file
16
SAE2.02_Application_WEB/tests/mocks/libraries/table.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class Mock_Libraries_Table extends CI_Table {
|
||||
|
||||
// Override inaccessible 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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user