diff options
Diffstat (limited to 'test/unit/bootstrap.php')
-rw-r--r-- | test/unit/bootstrap.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/bootstrap.php b/test/unit/bootstrap.php index af10b46..8b4e24a 100644 --- a/test/unit/bootstrap.php +++ b/test/unit/bootstrap.php @@ -4,14 +4,14 @@ include(dirname(dirname(__FILE__)) . '/../lib/config.php'); require __DIR__ . '/../../vendor/autoload.php'; function autoload_tests($class) { - if (strpos($class, 'PHPHTTPClientTest_') !== 0) { - return; - } - $class = substr($class, 13); - $file = str_replace('_', '/', $class); - if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) { - require_once(dirname(__FILE__) . '/' . $file . '.php'); - } + if (strpos($class, 'PHPHTTPClientTest_') !== 0) { + return; + } + $class = substr($class, 13); + $file = str_replace('_', '/', $class); + if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) { + require_once(dirname(__FILE__) . '/' . $file . '.php'); + } } spl_autoload_register('autoload_tests'); ?>
\ No newline at end of file |