dchill42 | 6262d05 | 2012-11-24 18:41:13 -0500 | [diff] [blame] | 1 | <?php |
2 | |||||
3 | /** | ||||
4 | * Mock library to subclass Driver for testing | ||||
5 | */ | ||||
6 | class Mock_Libraries_Driver extends CI_Driver_Library { | ||||
7 | /** | ||||
8 | * Set valid drivers list | ||||
9 | */ | ||||
10 | public function driver_list($drivers = NULL) | ||||
11 | { | ||||
12 | if (empty($drivers)) | ||||
13 | { | ||||
14 | return $this->valid_drivers; | ||||
15 | } | ||||
16 | |||||
17 | $this->valid_drivers = (array) $drivers; | ||||
18 | } | ||||
19 | |||||
20 | /** | ||||
21 | * Get library name | ||||
22 | */ | ||||
23 | public function get_name() | ||||
24 | { | ||||
25 | return $this->lib_name; | ||||
26 | } | ||||
27 | } |