scratch – Blame information for rev 126

Subversion Repositories:
Rev:
Rev Author Line No. Line
126 office 1 <?php
2  
3 error_reporting(-1);
4 ini_set('display_errors', 1);
5 ini_set('display_startup_errors', 1);
6  
7 define('AURA_URI_TEST_ROOT', __DIR__);
8  
9 // preload source files
10 require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src.php';
11  
12 // autoload test files
13 spl_autoload_register(function($class) {
14 $file = dirname(__DIR__). DIRECTORY_SEPARATOR
15 . 'tests' . DIRECTORY_SEPARATOR
16 . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
17 if (file_exists($file)) {
18 require $file;
19 }
20 });