blob: 633194345ac88323ab9e72c982fe6026871c20a6 [file] [log] [blame]
dchill426262d052012-11-24 18:41:13 -05001<?php
2
3/**
4 * Mock library to subclass Driver for testing
5 */
6class 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 }
Andrey Andreev838a9d62012-12-03 14:37:47 +020027}