From 09d788014507983d886f66236d4bb087f096894d Mon Sep 17 00:00:00 2001 From: Clement Desmidt Date: Mon, 3 Feb 2020 17:30:09 +0100 Subject: [PATCH] :fire: Delete useless tests --- tests/newhtml.html | 14 -------------- tests/test.php | 33 --------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 tests/newhtml.html delete mode 100644 tests/test.php diff --git a/tests/newhtml.html b/tests/newhtml.html deleted file mode 100644 index 6bd86f2..0000000 --- a/tests/newhtml.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - -
TODO write content
- - diff --git a/tests/test.php b/tests/test.php deleted file mode 100644 index c3764bc..0000000 --- a/tests/test.php +++ /dev/null @@ -1,33 +0,0 @@ - folder -// test 1 -echo "starting test 1 \n"; -$file = TEST_FOLDER.'/test1'; -file_put_contents($file, 'test1'); -echo file_exists($file) ? 'OK' : 'KO'; -echo "\n"; -$backup = new Shikiryu_Backup_Files(array($file)); -$date = date('Ydm'); -$backup->addDate($date)->backupToFolder('bu'); -$backupFile = TEST_FOLDER.'/bu/'.$date.'.test1'; -if (file_exists($backupFile)) { - echo 'OK'; - unlink($backupFile); -} else { - die('KO - see what\'s in bu'); -} - -/* -$backup->addDate()->addTime()->backupToEmail('from@gmail.com', 'to@gmail.com', 'test class', 'coucou'); -$backup->addDate()->addTime()->backupToFTP('ftp.domain.com', 'login', 'password', '/folder'); - -$backup2 = new Shikiryu_Backup_MYSQL('localhost', 'login', 'password', 'db'); -$backup2->fromTables(array('table1'))->addDate()->addTime(); -$backup2->backupToFolder('bu'); -?> -*/ \ No newline at end of file