Update Tests to allow them to be parrallelized

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2675 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-03-14 10:18:37 +00:00
parent 4356cb7c7d
commit 7a3bad0934
3 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class test_dblayer_{ENGINE} extends PHPUnit_Framework_TestCase
public $engine="{ENGINE}"; public $engine="{ENGINE}";
public $confs = array ( public $confs = array (
"sqlite" => array ( "sqlite" => array (
"dsn" => "sqlite:/tmp/database.db", "dsn" => "sqlite:/tmp/databaseDBLayer.db",
"username" => null, "username" => null,
"password" => null, "password" => null,
"driver_options" => null, "driver_options" => null,

View File

@@ -16,8 +16,8 @@ class test_dblayerauthzgroups_sqlite extends PHPUnit_Framework_TestCase
public function test_delDB () public function test_delDB ()
{ {
if (file_exists ("/tmp/database.db")) if (file_exists ("/tmp/databaseAuthz.db"))
unlink ("/tmp/database.db"); unlink ("/tmp/databaseAuthz.db");
} }
public function test_createTablesAuthzgroups () public function test_createTablesAuthzgroups ()

View File

@@ -1,3 +1,4 @@
time = true
color = true color = true
bootstrap = "Tests/autoload.php.dist" bootstrap = "Tests/autoload.php.dist"
testfiles[] = "Tests/*Test.php" testfiles[] = "Tests/*Test.php"