Update tests to remove the dependancy to configuration

Change the databases to be unique by test file


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2670 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-03-12 16:34:44 +00:00
parent 3c133753ea
commit e977f9dfa1
5 changed files with 93 additions and 190 deletions

View File

@@ -94,7 +94,7 @@ class test_dblayer_{ENGINE} extends PHPUnit_Framework_TestCase
"where"=>"\$'\"",
"with space"=>"with space"));
// SQLite start at 1, MySQL start at 0...
$this->assertThat($res, $this->lessThanOrEqual(1));
$this->assertLessThanOrEqual ($res, 1);
}
public function test_read1 ()
@@ -267,7 +267,7 @@ class test_dblayer_{ENGINE} extends PHPUnit_Framework_TestCase
"with space"=>"with space"));
$db->disconnect ();
// SQLite start at 1, MySQL start at 0...
$this->assertThat($res, $this->lessThanOrEqual(2));
$this->assertLessThanOrEqual ($res, 2);
}
// Test the unique feature