Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasitha Pandithawatta <yasitha4@gmail.com>2012-08-14 20:03:20 +0400
committerYasitha Pandithawatta <yasitha4@gmail.com>2012-08-14 20:03:20 +0400
commit64c8310611e145ca7bc6c823ebdbc06b454367cb (patch)
treec0bbaea93042e18016354266e67b747bceda12f8
parent7c872205cf6acd90e9b83a912cd6f4096693ca5f (diff)
Create engines test suit and fixed failing test cases
-rw-r--r--phpunit.xml.dist3
-rw-r--r--test/engines/PMA_StorageEngine_innodb_test.php10
2 files changed, 8 insertions, 5 deletions
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 2a1f3dec1e..60c46a712b 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -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>
diff --git a/test/engines/PMA_StorageEngine_innodb_test.php b/test/engines/PMA_StorageEngine_innodb_test.php
index b944cfd8e7..05b4d54bc3 100644
--- a/test/engines/PMA_StorageEngine_innodb_test.php
+++ b/test/engines/PMA_StorageEngine_innodb_test.php
@@ -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
);
}