Moved old tests

This commit is contained in:
Netkas 2023-08-30 20:04:51 -04:00
parent e93fd81002
commit b751b39548
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
12 changed files with 33 additions and 13 deletions

View file

@ -1,12 +0,0 @@
<?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);