From 6262d053db57957c4445ef7fce76070854c3e30d Mon Sep 17 00:00:00 2001 From: dchill42 Date: Sat, 24 Nov 2012 18:41:13 -0500 Subject: Added support for extending individual driver classes and driver unit tests Signed-off-by: dchill42 --- tests/mocks/libraries/driver.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/mocks/libraries/driver.php (limited to 'tests/mocks/libraries/driver.php') diff --git a/tests/mocks/libraries/driver.php b/tests/mocks/libraries/driver.php new file mode 100644 index 000000000..91bb01596 --- /dev/null +++ b/tests/mocks/libraries/driver.php @@ -0,0 +1,27 @@ +valid_drivers; + } + + $this->valid_drivers = (array) $drivers; + } + + /** + * Get library name + */ + public function get_name() + { + return $this->lib_name; + } +} -- cgit v1.2.3-24-g4f1b From 838a9d69a9139b6bcd6f8765fdd2d58b929e70ad Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 3 Dec 2012 14:37:47 +0200 Subject: [ci skip] Cleaned some spaces --- tests/mocks/libraries/driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/mocks/libraries/driver.php') diff --git a/tests/mocks/libraries/driver.php b/tests/mocks/libraries/driver.php index 91bb01596..633194345 100644 --- a/tests/mocks/libraries/driver.php +++ b/tests/mocks/libraries/driver.php @@ -24,4 +24,4 @@ class Mock_Libraries_Driver extends CI_Driver_Library { { return $this->lib_name; } -} +} \ No newline at end of file -- cgit v1.2.3-24-g4f1b