Added classes & objects for Package Structure 1.0
This commit is contained in:
parent
af819913fd
commit
c54ea383b9
46 changed files with 1396 additions and 93 deletions
|
@ -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);
|
13
tests/third_party/theseer/directory_scanner.php
vendored
Normal file
13
tests/third_party/theseer/directory_scanner.php
vendored
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue