summaryrefslogtreecommitdiffstats
path: root/test/unit/bootstrap.php
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-09-13 09:26:57 -0700
committerGitHub <noreply@github.com>2016-09-13 09:26:57 -0700
commit55ffd690f9309e0d3331bf9e2daa4ac2eac4ab94 (patch)
tree9a94aec7e6879e6e9ffbb448782277bf4e75f582 /test/unit/bootstrap.php
parent23193453f681d77adf3f4ac6981e62e26c698537 (diff)
parente5de48e78b1d2d8421562a5a424a170813c0e69c (diff)
downloadphp-http-client-3.2.0.zip
php-http-client-3.2.0.tar.gz
php-http-client-3.2.0.tar.bz2
Merge pull request #6 from misantron/refactoringv3.2.0
Library refactoring around PSR-2 / PSR-4 code standards
Diffstat (limited to 'test/unit/bootstrap.php')
-rw-r--r--test/unit/bootstrap.php15
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