Create engines test suit and fixed failing test cases

This commit is contained in:
Yasitha Pandithawatta 2012-08-14 21:33:20 +05:30
parent 7c872205cf
commit 64c8310611
2 changed files with 8 additions and 5 deletions

View File

@ -26,6 +26,9 @@
<testsuite name="Classes">
<directory suffix="_test.php">test/classes</directory>
</testsuite>
<testsuite name="Engines">
<directory suffix="_test.php">test/engines</directory>
</testsuite>
<testsuite name="Unit">
<file>test/Environment_test.php</file>
<directory suffix="_test.php">test/libraries/core</directory>

View File

@ -292,14 +292,14 @@ class PMA_StorageEngine_innodb_test extends PHPUnit_Framework_TestCase
if (! function_exists('PMA_DBI_fetch_value')) {
function PMA_DBI_fetch_value()
{
return 'status';
return 2;
}
}
$this->assertEquals(
$this->object->getPageStatus(),
'<pre id="pre_innodb_status">' . "\n"
. 'status' . "\n"
. 2 . "\n"
. '</pre>' . "\n"
);
@ -316,7 +316,7 @@ class PMA_StorageEngine_innodb_test extends PHPUnit_Framework_TestCase
$this->assertEquals(
$this->object->getPage('Status'),
'<pre id="pre_innodb_status">' . "\n"
. 'status' . "\n"
. 2 . "\n"
. '</pre>' . "\n"
);
}
@ -338,7 +338,7 @@ class PMA_StorageEngine_innodb_test extends PHPUnit_Framework_TestCase
public function testGetInnodbPluginVersion(){
$this->assertEquals(
$this->object->getInnodbPluginVersion(),
'status'
2
);
}
@ -360,7 +360,7 @@ class PMA_StorageEngine_innodb_test extends PHPUnit_Framework_TestCase
public function testGetInnodbFileFormat(){
$this->assertEquals(
$this->object->getInnodbFileFormat(),
'status'
2
);
}