summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-04 15:39:19 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-04 15:39:19 +0200
commitfc11dcc82cefa7299e6f8c74d0e005ebb6fa568c (patch)
tree2e452129ea5ab7a4c65d9f3a83cf762a55acbcca /tests
parent9d533aef135dff9dd3465f993283d6e49a9983a5 (diff)
Alter SQLite3's version() method and clear some spaces
Diffstat (limited to 'tests')
-rw-r--r--tests/mocks/autoloader.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mocks/autoloader.php b/tests/mocks/autoloader.php
index ff2196d4e..90aabcbe6 100644
--- a/tests/mocks/autoloader.php
+++ b/tests/mocks/autoloader.php
@@ -7,9 +7,9 @@
// Prototype :
//
// $mock_table = new Mock_Libraries_Table(); // Will load ./mocks/libraries/table.php
-// $mock_database_driver = new Mock_Database_Driver(); // Will load ./mocks/database/driver.php
+// $mock_database_driver = new Mock_Database_Driver(); // Will load ./mocks/database/driver.php
// and so on...
-function autoload($class)
+function autoload($class)
{
$dir = realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR;
@@ -75,13 +75,13 @@ function autoload($class)
{
$trace = debug_backtrace();
- // If the autoload call came from `class_exists` or `file_exists`,
+ // If the autoload call came from `class_exists` or `file_exists`,
// we skipped and return FALSE
if ($trace[2]['function'] === 'class_exists' OR $trace[2]['function'] === 'file_exists')
{
return FALSE;
}
-
+
throw new InvalidArgumentException("Unable to load $class.");
}