ajout SAE PHP 19/20 Meilleure note de la promo
This commit is contained in:
20
SAE2.02_Application_WEB/tests/mocks/ci_testconfig.php
Normal file
20
SAE2.02_Application_WEB/tests/mocks/ci_testconfig.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
class CI_TestConfig extends CI_Config {
|
||||
|
||||
public $config = array();
|
||||
public $_config_paths = array(APPPATH);
|
||||
public $loaded = array();
|
||||
|
||||
public function item($key, $index = '')
|
||||
{
|
||||
return isset($this->config[$key]) ? $this->config[$key] : FALSE;
|
||||
}
|
||||
|
||||
public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
|
||||
{
|
||||
$this->loaded[] = $file;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user