summaryrefslogtreecommitdiff
path: root/tests/BasicTest.php
diff options
context:
space:
mode:
authorLaurent Cozic <laurent@cozic.net>2017-11-26 17:00:02 +0000
committerLaurent Cozic <laurent@cozic.net>2017-11-26 17:00:02 +0000
commitb57cf4b7329518027ce8155fe22adb3b456b3280 (patch)
treec2088f3b0c36a1f0c50330bd4a3d1bb844c67ef5 /tests/BasicTest.php
parent2d0cb29bcb88104e44d04aeb2860cbaf25cd32cd (diff)
Removed accidentally committed test files
Diffstat (limited to 'tests/BasicTest.php')
-rw-r--r--tests/BasicTest.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/BasicTest.php b/tests/BasicTest.php
deleted file mode 100644
index fcff13d..0000000
--- a/tests/BasicTest.php
+++ /dev/null
@@ -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(
- }
-
-} \ No newline at end of file