Пример #1
0
 public function testConstruct()
 {
     $directory = __DIR__ . '/../src';
     $dir = new \alphayax\utils\file_system\Directory($directory);
     $this->assertTrue($dir->exists());
     $this->assertFileExists($directory);
 }
Пример #2
0
<?php

require_once '../vendor/autoload.php';
$Dir = new \alphayax\utils\file_system\Directory('../src');
$Files = $Dir->getFilesByExtension('php', true);
print_r($Files);