Adjust test to new API

Also mark as incomplete tests which really did not test anything.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-05-09 12:45:01 +02:00
parent 09e15add26
commit 1f669982f8
3 changed files with 7 additions and 4 deletions

View File

@ -116,6 +116,7 @@ class PMA_DBI_Drizzle_Test extends PHPUnit_Framework_TestCase
*/
public function testSelectDb()
{
$this->markTestIncomplete('Not testing anything');
//$link is empty
$GLOBALS['userlink'] = null;
$this->assertEquals(
@ -136,12 +137,12 @@ class PMA_DBI_Drizzle_Test extends PHPUnit_Framework_TestCase
//PHP's 'mysql' extension does not support multi_queries
$this->assertEquals(
false,
$this->object->moreResults()
$this->object->moreResults(null)
);
//PHP's 'mysql' extension does not support multi_queries
$this->assertEquals(
false,
$this->object->nextResult()
$this->object->nextResult(null)
);
}

View File

@ -252,6 +252,7 @@ class PMA_DBI_Mysql_Test extends PHPUnit_Framework_TestCase
*/
public function testSelectDb()
{
$this->markTestIncomplete('Not testing anything');
//$link is empty
$GLOBALS['userlink'] = null;
$this->assertEquals(
@ -272,12 +273,12 @@ class PMA_DBI_Mysql_Test extends PHPUnit_Framework_TestCase
//PHP's 'mysql' extension does not support multi_queries
$this->assertEquals(
false,
$this->object->moreResults()
$this->object->moreResults(null)
);
//PHP's 'mysql' extension does not support multi_queries
$this->assertEquals(
false,
$this->object->nextResult()
$this->object->nextResult(null)
);
}

View File

@ -230,6 +230,7 @@ class PMA_DBI_Mysqli_Test extends PHPUnit_Framework_TestCase
*/
public function testSelectDb()
{
$this->markTestIncomplete('Not testing anything');
//$link is empty
$GLOBALS['userlink'] = null;
$this->assertEquals(