◆ pathToArray()
ILIAS\Filesystem\Util\LegacyZipTest::pathToArray |
( |
string |
$path | ) |
|
|
private |
Definition at line 117 of file LegacyZipTest.php.
Referenced by ILIAS\Filesystem\Util\LegacyZipTest\testZipAndUnzipWithTop().
119 $ignore = [
'.',
'..',
'.DS_Store'];
120 $files = new \RecursiveIteratorIterator(
122 \RecursiveIteratorIterator::SELF_FIRST
125 static function ($file) use (
$path):
string {
126 $real_path = $file->getRealPath();
128 return str_replace(
$path,
'', $real_path);
132 iterator_to_array($files),
133 static fn(\
SplFileInfo $file):
bool => !in_array($file->getFilename(), $ignore,
true)
◆ recurseRmdir()
ILIAS\Filesystem\Util\LegacyZipTest::recurseRmdir |
( |
string |
$path_to_directory | ) |
|
|
private |
◆ setUp()
ILIAS\Filesystem\Util\LegacyZipTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 48 of file LegacyZipTest.php.
50 if (file_exists($this->unzips_dir . self::ZIPPED_ZIP)) {
51 unlink($this->unzips_dir . self::ZIPPED_ZIP);
53 if (!defined(
'CLIENT_WEB_DIR')) {
54 define(
'CLIENT_WEB_DIR', __DIR__);
56 if (!defined(
'ILIAS_WEB_DIR')) {
57 define(
'ILIAS_WEB_DIR', __DIR__);
59 if (!defined(
'CLIENT_DATA_DIR')) {
60 define(
'CLIENT_DATA_DIR', __DIR__);
62 if (!defined(
'ILIAS_ABSOLUTE_PATH')) {
63 define(
'ILIAS_ABSOLUTE_PATH', __DIR__);
65 if (!defined(
'CLIENT_ID')) {
66 define(
'CLIENT_ID',
'client_id');
◆ tearDown()
ILIAS\Filesystem\Util\LegacyZipTest::tearDown |
( |
| ) |
|
|
protected |
◆ testZipAndUnzipWithTop()
ILIAS\Filesystem\Util\LegacyZipTest::testZipAndUnzipWithTop |
( |
| ) |
|
◆ $extracting_dir
string ILIAS\Filesystem\Util\LegacyZipTest::$extracting_dir = '' |
|
private |
◆ $unzips_dir
string ILIAS\Filesystem\Util\LegacyZipTest::$unzips_dir = __DIR__ . '/unzips/' |
|
protected |
◆ $zip_output_path
string ILIAS\Filesystem\Util\LegacyZipTest::$zip_output_path = '' |
|
private |
◆ $zips_dir
string ILIAS\Filesystem\Util\LegacyZipTest::$zips_dir = __DIR__ . '/zips/' |
|
protected |
◆ DIR_TO_ZIP
const ILIAS\Filesystem\Util\LegacyZipTest::DIR_TO_ZIP = __DIR__ . '/dir_zip/testing_001' |
|
private |
◆ ZIPPED_ZIP
const ILIAS\Filesystem\Util\LegacyZipTest::ZIPPED_ZIP = 'zipped.zip' |
The documentation for this class was generated from the following file: