
Fixed namespace usages for polyfill packages Added dependency Symfony\polyfill-uuid Updated .gitignore Updated autoload.php Corrected .gitignore Added dependency nikic\PhpParser Removed .idea leftovers Added classes & objects for Package Structure 1.0 Updated autoload.php for tests
12 lines
No EOL
609 B
PHP
12 lines
No EOL
609 B
PHP
<?php
|
|
|
|
$BuildDirectory = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'build';
|
|
$AutoloadPath = $BuildDirectory . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'autoload.php';
|
|
|
|
if(!file_exists($BuildDirectory) || !is_dir($BuildDirectory))
|
|
throw new RuntimeException('Build directory does not exist, to run tests you must build the project.');
|
|
|
|
if(!file($AutoloadPath) || !is_file($AutoloadPath))
|
|
throw new RuntimeException('Autoload file does not exist in \'' . $BuildDirectory .'\', to run tests you must build the project.');
|
|
|
|
require($AutoloadPath); |