Ejemplo n.º 1
0
#!/usr/bin/env php
<?php 
include 'test/Test.php';
$test = new Test\Test();
$results = ['rar' => $test->testRar('wl.txt.rar'), 'zip' => $test->testZip('wl.txt.zip'), 'tar' => $test->testTar('wl.txt.tar.gz')];
print_r($results);
$file = 'test/compiled/laravel_config.php';
$write = $test->write($file);
if ($write) {
    print 'WORKING AS EXPECTED SIR ;)';
} else {
    echo 'gagal';
}
Ejemplo n.º 2
0
#!/usr/bin/env php
<?php 
include 'Test.php';
$test = new Test\Test();
$fileLaravel = 'compiled/laravel_config.php';
$fileSymfony = 'compiled/symfony_config.yml';
$fileYii = 'compiled/yii_config.php';
$template = (include 'config/template.php');
$results = ['rar' => $test->testRar('wl.txt.rar'), 'zip' => $test->testZip('wl.txt.zip'), 'tar' => $test->testTar('wl.txt.tar.gz'), 'writeLaravel' => $test->write($fileLaravel, $template['lct']) ? 'sukses writing' : 'gagal', 'writeSymfony' => $test->write($fileSymfony, $template['sct']) ? 'sukses writing' : 'gagal', 'writeYii' => $test->write($fileYii, $template['yct']) ? 'sukses writing' : 'gagal'];
print_r($results);