mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-11-10 06:04:18 +00:00
Removed accidentally committed test files
This commit is contained in:
parent
2d0cb29bcb
commit
b57cf4b732
5 changed files with 0 additions and 73273 deletions
6
test.txt
6
test.txt
|
@ -1,6 +0,0 @@
|
|||
1:123
|
||||
2:123
|
||||
3:123
|
||||
10:123
|
||||
4:123
|
||||
20:123
|
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class BaseTestCase extends TestCase {}
|
|
@ -1,40 +0,0 @@
|
|||
<?php
|
||||
|
||||
require_once dirname(__FILE__) . '/BaseTestCase.php';
|
||||
|
||||
class BasicTest extends BaseTestCase {
|
||||
|
||||
private function makeDir($dir) {
|
||||
if (!file_exists($dir)) {
|
||||
$ok = @mkdir($dir, 0777, true);
|
||||
if (!$ok) throw new Exception('Could not create source directory: ' . $dir);
|
||||
}
|
||||
return $dir;
|
||||
}
|
||||
|
||||
private function sourceDir() {
|
||||
return $this->makeDir(dirname(__FILE__) . '/data/source');
|
||||
}
|
||||
|
||||
private function destDir() {
|
||||
return $this->makeDir(dirname(__FILE__) . '/data/dest');
|
||||
}
|
||||
|
||||
private function scriptPath() {
|
||||
return dirname(dirname(__FILE__)) . '/rsync_tmbackup.sh';
|
||||
}
|
||||
|
||||
private function execScript($args) {
|
||||
$cmd = $this->scriptPath() . ' ' . implode(' ', $args);
|
||||
exec($cmd, $output, $errorCode);
|
||||
return array(
|
||||
'output' => $output,
|
||||
'errorCode' => $errorCode,
|
||||
);
|
||||
}
|
||||
|
||||
public function testFilesAreCopied() {
|
||||
//$this->execScript(
|
||||
}
|
||||
|
||||
}
|
3
tests/package-lock.json
generated
3
tests/package-lock.json
generated
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"lockfileVersion": 1
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue