First version of tests for dblayer with support of 3 db engines. The tests files are generated from dblayerComplet

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1810 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-11 14:33:47 +00:00
parent 50c328cdd6
commit 2a4468cdd0
2 changed files with 48 additions and 34 deletions

View File

@@ -14,6 +14,16 @@ if (file_exists ("/tmp/database.db"))
unlink ("/tmp/database.db");
}
file_put_contents ("Tests/dblayerSqliteTest.php",
str_replace ("{ENGINE}", "sqlite",
file_get_contents ("Tests/dblayerComplet.php")));
file_put_contents ("Tests/dblayerMySQLTest.php",
str_replace ("{ENGINE}", "mysql",
file_get_contents ("Tests/dblayerComplet.php")));
file_put_contents ("Tests/dblayerPostgreSQLTest.php",
str_replace ("{ENGINE}", "pgsql",
file_get_contents ("Tests/dblayerComplet.php")));
require_once ("domframework/config.php");
/** The class need to take care of configuration parameters */
class configuration extends config