1234567891011121314151617181920212223242526272829303132 |
- <?php
- define('TESTING', true);
-
-
- define('TESTING_DIRECTORY', __DIR__);
- error_reporting(-1);
- date_default_timezone_set('UTC');
- $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';
- }
- $loader = require $filename;
- $loader->addPsr4('Stash\\Test\\', __DIR__ . '/Stash/Test/');
|