Update dblayeroo Tests to check the insert return value correctely
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3921 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -181,7 +181,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
|
|||||||
"object"=>"object"))->execute ();
|
"object"=>"object"))->execute ();
|
||||||
$tbl1->disconnect ();
|
$tbl1->disconnect ();
|
||||||
// As the key is not an autoincrement, the lastInsertID can be 0 or 1
|
// As the key is not an autoincrement, the lastInsertID can be 0 or 1
|
||||||
$this->assertGreaterThanOrEqual ($res, "0");
|
$this->assertSame ($res, "group1");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_select2 ()
|
public function test_select2 ()
|
||||||
@@ -294,7 +294,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
|
|||||||
"object"=>"object"))->execute ();
|
"object"=>"object"))->execute ();
|
||||||
$tbl1->disconnect ();
|
$tbl1->disconnect ();
|
||||||
// As the key is not an autoincrement, the lastInsertID can be 0 or 1
|
// As the key is not an autoincrement, the lastInsertID can be 0 or 1
|
||||||
$this->assertGreaterThanOrEqual ($res, "0");
|
$this->assertSame ($res, "group1");
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////
|
///////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user