Skip to content
Snippets Groups Projects
Commit 698cdc18 authored by Art4's avatar Art4
Browse files

Remove unnecessary autoload for tests

parent b783727d
Branches
No related merge requests found
......@@ -7,20 +7,9 @@ spl_autoload_register(function ($class) {
*/
$class = str_replace('\\', '/', $class);
/* First, check under the current directory. It is important that
* we look here first, so that we don't waste time searching for
* test classes in the common case.
*/
// Check under the current directory
$path = dirname(__FILE__).'/'.$class.'.php';
if (file_exists($path)) {
require_once $path;
}
/* If we didn't find what we're looking for already, maybe it's
* a test class?
*/
$path = dirname(__FILE__).'/../test/'.$class.'.php';
if (file_exists($path)) {
require_once $path;
}
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment