Added classes & objects for Package Structure 1.0

This commit is contained in:
Netkas 2022-10-14 07:05:46 -04:00
parent af819913fd
commit c54ea383b9
46 changed files with 1396 additions and 93 deletions

View file

@ -6,7 +6,7 @@
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))
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);

View file

@ -0,0 +1,13 @@
<?php
require(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php');
$Scanner = new \ncc\ThirdParty\theseer\DirectoryScanner\DirectoryScanner();
$Basedir = realpath(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');
/** @var SplFileInfo $item */
foreach($Scanner($Basedir . DIRECTORY_SEPARATOR . 'src', true) as $item)
{
var_dump($item->getPath());
var_dump($item);
}