* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ define('TESTING', true); error_reporting(-1); $filename = __DIR__ .'/../vendor/autoload.php'; if (!file_exists($filename)) { echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL; echo " You need to execute `composer install` before running the tests. " . PHP_EOL; echo " Vendors are required for complete test execution. " . PHP_EOL; echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL . PHP_EOL; $filename = __DIR__ .'/../autoload.php'; require_once $filename; }else{ $loader = require_once $filename; $loader->add('Fetch\\Test', __DIR__); }