1<?php 2 3/* 4 * This file is part of the Stash package. 5 * 6 * (c) Robert Hafner <tedivm@tedivm.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12define('TESTING', true);// this is basically used by the StashArray driver to decide if "isEnabled()" should return 13 // true, since the Array driver is not meant for production use, just testing. We should not 14 // use this anywhere else in the project since that would defeat the point of testing. 15define('TESTING_DIRECTORY', __DIR__); 16error_reporting(-1); 17 18date_default_timezone_set('UTC'); 19 20$filename = __DIR__ .'/../vendor/autoload.php'; 21 22if (!file_exists($filename)) { 23 echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL; 24 echo " You need to execute `composer install` before running the tests. " . PHP_EOL; 25 echo " Vendors are required for complete test execution. " . PHP_EOL; 26 echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . PHP_EOL . PHP_EOL; 27 $filename = __DIR__ .'/../autoload.php'; 28} 29 30$loader = require $filename; 31$loader->addPsr4('Stash\\Test\\', __DIR__ . '/Stash/Test/'); 32