diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/README.md | 1 | ||||
-rw-r--r-- | tests/codeigniter/core/Loader_test.php | 3 | ||||
-rw-r--r-- | tests/mocks/core/common.php | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/tests/README.md b/tests/README.md index a5f89a2b1..3e32edc0c 100644 --- a/tests/README.md +++ b/tests/README.md @@ -17,6 +17,7 @@ format to facilitate clean api design. [see http://arrenbrecht.ch/testing/] PHP Unit >= 3.5.6 pear channel-discover pear.phpunit.de + pear channel-discover pear.symfony.com pear install phpunit/PHPUnit vfsStream diff --git a/tests/codeigniter/core/Loader_test.php b/tests/codeigniter/core/Loader_test.php index e75d0d564..ac2656e75 100644 --- a/tests/codeigniter/core/Loader_test.php +++ b/tests/codeigniter/core/Loader_test.php @@ -147,6 +147,9 @@ class Loader_test extends CI_TestCase { public function test_driver() { + // Call the autoloader, to include system/libraries/Driver.php + class_exists('CI_Driver_Library', TRUE); + // Create driver in VFS $driver = 'unit_test_driver'; $dir = ucfirst($driver); diff --git a/tests/mocks/core/common.php b/tests/mocks/core/common.php index 24d645ae3..0ccfe1ea4 100644 --- a/tests/mocks/core/common.php +++ b/tests/mocks/core/common.php @@ -178,7 +178,7 @@ if ( ! function_exists('is_loaded')) if ( ! function_exists('log_message')) { - function log_message($level = 'error', $message, $php_error = FALSE) + function log_message($level, $message, $php_error = FALSE) { return TRUE; } |