Creation of the world

This commit is contained in:
Shikiryu
2015-07-03 00:00:30 +02:00
commit 88a5b39d23
10 changed files with 710 additions and 0 deletions

14
tests/newhtml.html Normal file
View File

@@ -0,0 +1,14 @@
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div>TODO write content</div>
</body>
</html>

14
tests/test.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
error_reporting(E_ALL);
include dirname(__FILE__) . '/Files.php';
include dirname(__FILE__) . '/Mysql.php';
$backup = new Shikiryu_Backup_Files(array(dirname(__FILE__).'/newhtml.html'));
$backup->addDate()->addTime()->backupToEmail('from@gmail.com', 'to@gmail.com', 'test class', 'coucou');
$backup->addDate()->addTime()->backupToFTP('ftp.domain.com', 'login', 'password', '/folder');
$backup->backupToFolder('bu');
$backup2 = new Shikiryu_Backup_MYSQL('localhost', 'login', 'password', 'db');
$backup2->fromTables(array('table1'))->addDate()->addTime();
$backup2->backupToFolder('bu');
?>