Actually fix failing test, remove some older test skips
This commit is contained in:
parent
757b83797f
commit
ac867c903a
@ -126,12 +126,6 @@ class FirebirdQBTest extends QBTest {
|
|||||||
|
|
||||||
public function testResultErrors()
|
public function testResultErrors()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (version_compare(PHP_VERSION, '7.0.0', '>='))
|
|
||||||
{
|
|
||||||
$this->markTestSkipped("Segfaults on this version of PHP");
|
|
||||||
}
|
|
||||||
|
|
||||||
$obj = self::$db->query('SELECT * FROM "create_test"');
|
$obj = self::$db->query('SELECT * FROM "create_test"');
|
||||||
|
|
||||||
// Test row count
|
// Test row count
|
||||||
|
@ -136,11 +136,6 @@ class FirebirdTest extends DBtest {
|
|||||||
|
|
||||||
public function testTruncate()
|
public function testTruncate()
|
||||||
{
|
{
|
||||||
if (version_compare(PHP_VERSION, '7.0.0', '>='))
|
|
||||||
{
|
|
||||||
$this->markTestSkipped("Segfaults on this version of PHP");
|
|
||||||
}
|
|
||||||
|
|
||||||
self::$db->truncate('create_test');
|
self::$db->truncate('create_test');
|
||||||
|
|
||||||
$this->assertTrue(self::$db->affected_rows() > 0);
|
$this->assertTrue(self::$db->affected_rows() > 0);
|
||||||
|
@ -68,7 +68,7 @@ class MySQLQBTest extends QBTest {
|
|||||||
// The important thing is that there is an array
|
// The important thing is that there is an array
|
||||||
// of results returned
|
// of results returned
|
||||||
$this->assertTrue(is_array($res));
|
$this->assertTrue(is_array($res));
|
||||||
$this->assertTrue(count($res) > 1);
|
$this->assertTrue(count(array_keys($res[0])) > 1);
|
||||||
$this->assertTrue(array_key_exists('table', $res));
|
$this->assertTrue(array_key_exists('table', $res[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user