diff options
author | misantron <misantron@gmail.com> | 2016-07-09 01:06:33 +0300 |
---|---|---|
committer | misantron <misantron@gmail.com> | 2016-07-09 01:06:33 +0300 |
commit | 5af53adbcadf57f3a154e7ae8d8a50b64c414390 (patch) | |
tree | 4448d3d1b4fb1819b62a84017f98f1a1561308d2 /test/unit/bootstrap.php | |
parent | 1c766087ca9e180c37000534c97b43fc8c1d66ad (diff) | |
download | php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.zip php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.tar.gz php-http-client-5af53adbcadf57f3a154e7ae8d8a50b64c414390.tar.bz2 |
Bump composer PHP version to 5.4, library refactoring to PSR-2 and PSR-4 standards
Diffstat (limited to 'test/unit/bootstrap.php')
-rw-r--r-- | test/unit/bootstrap.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/test/unit/bootstrap.php b/test/unit/bootstrap.php index 71a1608..19d4b20 100644 --- a/test/unit/bootstrap.php +++ b/test/unit/bootstrap.php @@ -1,16 +1,3 @@ <?php -include(dirname(dirname(__FILE__)) . '/../lib/SendGrid/client.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'); - } -} -spl_autoload_register('autoload_tests'); -?>
\ No newline at end of file |