From 2d0cb29bcb88104e44d04aeb2860cbaf25cd32cd Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 26 Nov 2017 16:59:29 +0000 Subject: Allow specifying the expiration strategy tokens in any order (less error prone) --- tests/BasicTest.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/BasicTest.php (limited to 'tests/BasicTest.php') diff --git a/tests/BasicTest.php b/tests/BasicTest.php new file mode 100644 index 0000000..fcff13d --- /dev/null +++ b/tests/BasicTest.php @@ -0,0 +1,40 @@ +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 -- cgit v1.2.3