diff --git a/test/classes/PMA_Advisor_test.php b/test/classes/PMA_Advisor_test.php
index c8464d6669a7..2c82ba35df6e 100644
--- a/test/classes/PMA_Advisor_test.php
+++ b/test/classes/PMA_Advisor_test.php
@@ -87,10 +87,10 @@ public function testAdvisorBytime()
{
$result = ADVISOR_bytime(10, 2);
$this->assertEquals("10 per second", $result);
-
+
$result = ADVISOR_bytime(0.02, 2);
$this->assertEquals("1.2 per minute", $result);
-
+
$result = ADVISOR_bytime(0.003, 2);
$this->assertEquals("10.8 per hour", $result);
}
@@ -104,7 +104,7 @@ public function testAdvisorTimespanFormat()
{
$result = ADVISOR_timespanFormat(1200);
$this->assertEquals("0 days, 0 hours, 20 minutes and 0 seconds", $result);
-
+
$result = ADVISOR_timespanFormat(100);
$this->assertEquals("0 days, 0 hours, 1 minutes and 40 seconds", $result);
}
diff --git a/test/classes/PMA_DBQbe_test.php b/test/classes/PMA_DBQbe_test.php
index b4a27e51af43..d166f9183744 100644
--- a/test/classes/PMA_DBQbe_test.php
+++ b/test/classes/PMA_DBQbe_test.php
@@ -19,7 +19,7 @@
/**
* Tests for PMA_DBQbe class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_DBQbe_Test extends PHPUnit_Framework_TestCase
diff --git a/test/classes/PMA_File_test.php b/test/classes/PMA_File_test.php
index ba924339edc2..0fa52a58a4fe 100644
--- a/test/classes/PMA_File_test.php
+++ b/test/classes/PMA_File_test.php
@@ -21,7 +21,7 @@ class PMA_File_Test extends PHPUnit_Framework_TestCase
{
/**
* Setup function for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -34,10 +34,10 @@ public function setup()
/**
* Test for PMA_File::getCompression
- *
+ *
* @param string $file file string
* @param string $mime expected mime
- *
+ *
* @return void
* @dataProvider compressedFiles
*/
@@ -49,10 +49,10 @@ public function testMIME($file, $mime)
/**
* Test for PMA_File::getNextChunk
- *
+ *
* @param string $file file string
* @param string $mime expected mime
- *
+ *
* @return void
* @dataProvider compressedFiles
*/
@@ -71,10 +71,10 @@ public function testContent($file, $mime)
/**
* Test for PMA_File::getContent
- *
+ *
* @param string $file file string
* @param string $mime expected mime
- *
+ *
* @return void
* @dataProvider compressedFiles
*/
@@ -87,7 +87,7 @@ public function testBinaryContent($file, $mime)
/**
* Data provider for tests
- *
+ *
* @return array Test data
*/
public function compressedFiles()
diff --git a/test/classes/PMA_List_Database_test.php b/test/classes/PMA_List_Database_test.php
index 984069561e83..2fa6f2b12b1a 100644
--- a/test/classes/PMA_List_Database_test.php
+++ b/test/classes/PMA_List_Database_test.php
@@ -22,7 +22,7 @@ class PMA_List_Database_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -49,7 +49,7 @@ private function _callProtectedFunction($name, $params)
/**
* Test for PMA_List_Database::getEmpty
- *
+ *
* @return void
*/
public function testEmpty()
@@ -60,7 +60,7 @@ public function testEmpty()
/**
* Test for PMA_List_Database::getSingleItem
- *
+ *
* @return void
*/
public function testSingle()
@@ -71,7 +71,7 @@ public function testSingle()
/**
* Test for PMA_List_Database::exists
- *
+ *
* @return void
*/
public function testExists()
@@ -82,7 +82,7 @@ public function testExists()
/**
* Test for PMA_List_Database::getHtmlOptions
- *
+ *
* @return void
*/
public function testHtmlOptions()
diff --git a/test/classes/PMA_Message_test.php b/test/classes/PMA_Message_test.php
index 735c5b178c95..29026136635e 100644
--- a/test/classes/PMA_Message_test.php
+++ b/test/classes/PMA_Message_test.php
@@ -330,7 +330,7 @@ public function testSanitize()
/**
* Data provider for testDecodeBB
- *
+ *
* @return array Test data
*/
public function decodeBBDataProvider()
@@ -558,7 +558,7 @@ public function testIsDisplayed()
/**
* Data provider for testAffectedRows
- *
+ *
* @return array Test-data
*/
public function providerAffectedRows()
@@ -603,7 +603,7 @@ public function testAffectedRows($rows, $output)
/**
* Data provider for testInsertedRows
- *
+ *
* @return array Test-data
*/
public function providerInsertedRows()
@@ -648,7 +648,7 @@ public function testInsertedRows($rows, $output)
/**
* Data provider for testDeletedRows
- *
+ *
* @return array Test-data
*/
public function providerDeletedRows()
diff --git a/test/classes/PMA_PDF_test.php b/test/classes/PMA_PDF_test.php
index a839e868b21e..794c67af78cf 100644
--- a/test/classes/PMA_PDF_test.php
+++ b/test/classes/PMA_PDF_test.php
@@ -24,7 +24,7 @@ class PMA_PDF_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -35,7 +35,7 @@ public function setup()
/**
* Test for PMA_PDF::getPDFData
- *
+ *
* @group large
* @return void
*/
@@ -47,7 +47,7 @@ public function testBasic()
/**
* Test for PMA_PDF::getPDFData
- *
+ *
* @group large
* @return void
*/
@@ -60,7 +60,7 @@ public function testAlias()
/**
* Test for PMA_PDF::getPDFData
- *
+ *
* @group large
* @return void
*/
diff --git a/test/classes/PMA_Scripts_test.php b/test/classes/PMA_Scripts_test.php
index 50406705480c..d59b8a83a149 100644
--- a/test/classes/PMA_Scripts_test.php
+++ b/test/classes/PMA_Scripts_test.php
@@ -146,8 +146,8 @@ public function testAddCode()
public function testGetFiles()
{
// codemirror's onload event is blacklisted
- $this->object->addFile('codemirror/lib/codemirror.js');
-
+ $this->object->addFile('codemirror/lib/codemirror.js');
+
$this->object->addFile('common.js');
$this->assertEquals(
array(
diff --git a/test/classes/PMA_Table_test.php b/test/classes/PMA_Table_test.php
index 17d83da61ccc..e0bc8f15c115 100644
--- a/test/classes/PMA_Table_test.php
+++ b/test/classes/PMA_Table_test.php
@@ -494,7 +494,7 @@ public function testGenerateFieldSpec()
$field_primary, $move_to
);
$this->assertEquals(
- "`PMA_name` BIT(12) PMA_attribute NULL DEFAULT b'10' "
+ "`PMA_name` BIT(12) PMA_attribute NULL DEFAULT b'10' "
. "AUTO_INCREMENT COMMENT 'PMA_comment' FIRST",
$query
);
@@ -507,7 +507,7 @@ public function testGenerateFieldSpec()
$field_primary, $move_to
);
$this->assertEquals(
- "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT TRUE "
+ "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT TRUE "
. "AUTO_INCREMENT COMMENT 'PMA_comment' FIRST",
$query
);
@@ -520,7 +520,7 @@ public function testGenerateFieldSpec()
$field_primary, $move_to
);
$this->assertEquals(
- "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT NULL "
+ "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT NULL "
. "AUTO_INCREMENT COMMENT 'PMA_comment' FIRST",
$query
);
@@ -533,7 +533,7 @@ public function testGenerateFieldSpec()
$field_primary, $move_to
);
$this->assertEquals(
- "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT CURRENT_TIMESTAMP "
+ "`PMA_name` BOOLEAN PMA_attribute NULL DEFAULT CURRENT_TIMESTAMP "
. "AUTO_INCREMENT COMMENT 'PMA_comment' FIRST",
$query
);
@@ -548,7 +548,7 @@ public function testGenerateFieldSpec()
$field_primary, $move_to
);
$this->assertEquals(
- "`PMA_name` BOOLEAN PMA_attribute NULL INCREMENT "
+ "`PMA_name` BOOLEAN PMA_attribute NULL INCREMENT "
. "COMMENT 'PMA_comment' FIRST",
$query
);
diff --git a/test/classes/PMA_Theme_Manager_test.php b/test/classes/PMA_Theme_Manager_test.php
index 0fbffa4cdb03..6d4042acf579 100644
--- a/test/classes/PMA_Theme_Manager_test.php
+++ b/test/classes/PMA_Theme_Manager_test.php
@@ -26,7 +26,7 @@ class PMA_Theme_Manager_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -42,7 +42,7 @@ public function setup()
/**
* Test for PMA_Theme_Manager::getThemeCookieName
- *
+ *
* @return void
*/
public function testCookieName()
@@ -53,7 +53,7 @@ public function testCookieName()
/**
* Test for PMA_Theme_Manager::getThemeCookieName
- *
+ *
* @return void
*/
public function testPerServerCookieName()
@@ -65,7 +65,7 @@ public function testPerServerCookieName()
/**
* Test for PMA_Theme_Manager::getHtmlSelectBox
- *
+ *
* @return void
*/
public function testHtmlSelectBox()
diff --git a/test/classes/PMA_Theme_test.php b/test/classes/PMA_Theme_test.php
index d586035ce247..8a92bc57b272 100644
--- a/test/classes/PMA_Theme_test.php
+++ b/test/classes/PMA_Theme_test.php
@@ -55,7 +55,7 @@ protected function tearDown()
/**
* Test for PMA_Theme::loadInfo
- *
+ *
* @return void
*/
public function testCheckImgPathNotExisted()
@@ -66,7 +66,7 @@ public function testCheckImgPathNotExisted()
/**
* Test for PMA_Theme::loadInfo
- *
+ *
* @return void
*/
public function testCheckImgPathIncorrect()
@@ -80,7 +80,7 @@ public function testCheckImgPathIncorrect()
/**
* Test for PMA_Theme::getName, getVersion
- *
+ *
* @return void
*/
public function testCheckImgPathFull()
@@ -93,7 +93,7 @@ public function testCheckImgPathFull()
/**
* Test for PMA_Theme::loadInfo
- *
+ *
* @return void
*/
public function testLoadInfo()
@@ -115,7 +115,7 @@ public function testLoadInfo()
/**
* Test for PMA_Theme::load
- *
+ *
* @return void
*/
public function testLoad()
@@ -126,7 +126,7 @@ public function testLoad()
/**
* Test for PMA_Theme::load
- *
+ *
* @return void
*/
public function testLoadNotExisted()
@@ -136,7 +136,7 @@ public function testLoadNotExisted()
/**
* Test fir PMA_Theme::checkImgPath
- *
+ *
* @return void
* @expectedException PHPUnit_Framework_Error
*/
@@ -150,7 +150,7 @@ public function testCheckImgPathBad()
/**
* Test for PMA_Theme::checkImgPath
- *
+ *
* @return void
*/
public function testCheckImgPath()
@@ -161,7 +161,7 @@ public function testCheckImgPath()
/**
* Test for PMA_Theme::checkImgPath
- *
+ *
* @return void
*/
public function testCheckImgPathGlobals()
@@ -173,7 +173,7 @@ public function testCheckImgPathGlobals()
/**
* Test for PMA_Theme::checkImgPath
- *
+ *
* @return void
* @expectedException PHPUnit_Framework_Error
*/
@@ -190,7 +190,7 @@ public function testCheckImgPathGlobalsWrongPath()
/**
* Test for PMA_Theme::getPath
- *
+ *
* @return void
*
* @covers PMA_Theme::setPath
@@ -206,7 +206,7 @@ public function testGetSetPath()
/**
* Test for PMA_Theme::loadInfo
- *
+ *
* @return void
*/
public function testGetLayoutFile()
@@ -216,7 +216,7 @@ public function testGetLayoutFile()
/**
* Test for PMA_Theme::checkVersion
- *
+ *
* @return void
*
* @depends testLoadInfo
@@ -238,7 +238,7 @@ public function testGetSetCheckVersion()
/**
* Test for PMA_Theme::getName
- *
+ *
* @return void
*
* @covers PMA_Theme::getName
@@ -254,7 +254,7 @@ public function testGetSetName()
/**
* Test for PMA_Theme::getId
- *
+ *
* @return void
*
* @covers PMA_Theme::getId
@@ -270,7 +270,7 @@ public function testGetSetId()
/**
* Test for PMA_Theme::getImgPath
- *
+ *
* @return void
*
* @covers PMA_Theme::getImgPath
diff --git a/test/classes/PMA_Types_Drizzle_test.php b/test/classes/PMA_Types_Drizzle_test.php
index 9b804444a790..c973912672d2 100644
--- a/test/classes/PMA_Types_Drizzle_test.php
+++ b/test/classes/PMA_Types_Drizzle_test.php
@@ -29,7 +29,7 @@ class PMA_Types_Drizzle_Test extends PHPUnit_Framework_TestCase
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
+ *
* @return void
*/
protected function setUp()
@@ -56,7 +56,7 @@ public function testGetTypeDescription($type, $output)
/**
* Provider for testGetTypeDescription
- *
+ *
* @return array
*/
public function providerForTestGetTypeDescription()
@@ -162,7 +162,7 @@ public function testGetTypeClass($type, $output)
/**
* Data provider
- *
+ *
* @return array Test-data
*/
public function providerFortTestGetTypeClass()
@@ -211,7 +211,7 @@ public function testGetFunctionsClass($class, $output)
/**
* Provider for testGetFunctionsClass
- *
+ *
* @return array
*/
public function providerFortTestGetFunctionsClass()
@@ -332,7 +332,7 @@ public function providerFortTestGetFunctionsClass()
/**
* Test for getAttributes
- *
+ *
* @return void
*/
public function testGetAttributes()
@@ -348,7 +348,7 @@ public function testGetAttributes()
/**
* Test for getColumns
- *
+ *
* @return void
*/
public function testGetColumns()
diff --git a/test/classes/dbi/DBIDrizzle_test.php b/test/classes/dbi/DBIDrizzle_test.php
index 8894ec72a2ae..f16ace8a7a01 100644
--- a/test/classes/dbi/DBIDrizzle_test.php
+++ b/test/classes/dbi/DBIDrizzle_test.php
@@ -284,7 +284,7 @@ public function testDBIFunction()
"numColumns",
$this->object->numFields($result)
);
-
+
}
}
diff --git a/test/classes/dbi/DBIMysql_test.php b/test/classes/dbi/DBIMysql_test.php
index 556edd6d175c..6da2d202cd44 100644
--- a/test/classes/dbi/DBIMysql_test.php
+++ b/test/classes/dbi/DBIMysql_test.php
@@ -139,15 +139,15 @@ public function testMysqlDBI()
'mysql_fetch_array',
$ret
);
-
+
//test for affectedRows
$link = "PMA_link";
- $get_from_cache = false;
+ $get_from_cache = false;
$ret = $this->object->affectedRows($link, $get_from_cache);
$this->assertEquals(
"mysql_affected_rows",
$ret
- );
+ );
//test for connect
$user = 'PMA_user';
diff --git a/test/classes/navigation/PMA_NodeFactory_test.php b/test/classes/navigation/PMA_NodeFactory_test.php
index f7ed29e972db..44a525259e1a 100644
--- a/test/classes/navigation/PMA_NodeFactory_test.php
+++ b/test/classes/navigation/PMA_NodeFactory_test.php
@@ -20,7 +20,7 @@ class NodeFactory_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -32,7 +32,7 @@ public function setup()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testDefaultNode()
@@ -45,7 +45,7 @@ public function testDefaultNode()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testDefaultContainer()
@@ -58,7 +58,7 @@ public function testDefaultContainer()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testGroupContainer()
@@ -73,7 +73,7 @@ public function testGroupContainer()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testFileError()
@@ -84,7 +84,7 @@ public function testFileError()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testClassNameError()
diff --git a/test/classes/navigation/PMA_Node_Column_Container_test.php b/test/classes/navigation/PMA_Node_Column_Container_test.php
index 71f731bcfd7f..372c9d2c05fc 100644
--- a/test/classes/navigation/PMA_Node_Column_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Column_Container_test.php
@@ -19,7 +19,7 @@ class Node_Column_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for PMA_NodeFactory::__construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Column_test.php b/test/classes/navigation/PMA_Node_Column_test.php
index d2d08159a647..fe58dfa01bec 100644
--- a/test/classes/navigation/PMA_Node_Column_test.php
+++ b/test/classes/navigation/PMA_Node_Column_test.php
@@ -19,7 +19,7 @@ class Node_Column_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for PMA_NodeFactory::getInstance
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Event_Container_test.php b/test/classes/navigation/PMA_Node_Event_Container_test.php
index 0ae76cb12039..818daa604741 100644
--- a/test/classes/navigation/PMA_Node_Event_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Event_Container_test.php
@@ -19,7 +19,7 @@ class Node_Event_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Event_test.php b/test/classes/navigation/PMA_Node_Event_test.php
index ff89cc688be9..87c888768dfd 100644
--- a/test/classes/navigation/PMA_Node_Event_test.php
+++ b/test/classes/navigation/PMA_Node_Event_test.php
@@ -19,7 +19,7 @@ class Node_Event_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Function_Container_test.php b/test/classes/navigation/PMA_Node_Function_Container_test.php
index eeec9309688c..a2b5444597fa 100644
--- a/test/classes/navigation/PMA_Node_Function_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Function_Container_test.php
@@ -19,7 +19,7 @@ class Node_Function_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Function_test.php b/test/classes/navigation/PMA_Node_Function_test.php
index 95221a18ecff..a374bcba5e49 100644
--- a/test/classes/navigation/PMA_Node_Function_test.php
+++ b/test/classes/navigation/PMA_Node_Function_test.php
@@ -19,7 +19,7 @@ class Node_Function_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Index_Container_test.php b/test/classes/navigation/PMA_Node_Index_Container_test.php
index 73529ad30f71..a1bbf57c6b5a 100644
--- a/test/classes/navigation/PMA_Node_Index_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Index_Container_test.php
@@ -19,7 +19,7 @@ class Node_Index_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Index_test.php b/test/classes/navigation/PMA_Node_Index_test.php
index bce85e9158a3..ca2d0017bd79 100644
--- a/test/classes/navigation/PMA_Node_Index_test.php
+++ b/test/classes/navigation/PMA_Node_Index_test.php
@@ -19,7 +19,7 @@ class Node_Index_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Procedure_Container_test.php b/test/classes/navigation/PMA_Node_Procedure_Container_test.php
index 59e671a7e8f5..49278b6fb864 100644
--- a/test/classes/navigation/PMA_Node_Procedure_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Procedure_Container_test.php
@@ -19,7 +19,7 @@ class Node_Procedure_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Procedure_test.php b/test/classes/navigation/PMA_Node_Procedure_test.php
index fc35a931e04c..f394d77938d2 100644
--- a/test/classes/navigation/PMA_Node_Procedure_test.php
+++ b/test/classes/navigation/PMA_Node_Procedure_test.php
@@ -19,7 +19,7 @@ class Node_Procedure_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
@@ -31,7 +31,7 @@ public function setup()
/**
* Test for __construct
- *
+ *
* @return void
*/
public function testConstructor()
diff --git a/test/classes/navigation/PMA_Node_Trigger_Container_test.php b/test/classes/navigation/PMA_Node_Trigger_Container_test.php
index d62599caa74b..281f93f1770c 100644
--- a/test/classes/navigation/PMA_Node_Trigger_Container_test.php
+++ b/test/classes/navigation/PMA_Node_Trigger_Container_test.php
@@ -19,7 +19,7 @@ class Node_Trigger_Container_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
diff --git a/test/classes/navigation/PMA_Node_Trigger_test.php b/test/classes/navigation/PMA_Node_Trigger_test.php
index a76c96cffefd..de24ee11a917 100644
--- a/test/classes/navigation/PMA_Node_Trigger_test.php
+++ b/test/classes/navigation/PMA_Node_Trigger_test.php
@@ -19,7 +19,7 @@ class Node_Trigger_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
diff --git a/test/classes/navigation/PMA_Node_test.php b/test/classes/navigation/PMA_Node_test.php
index 63007dc79600..d75866e59d72 100644
--- a/test/classes/navigation/PMA_Node_test.php
+++ b/test/classes/navigation/PMA_Node_test.php
@@ -20,7 +20,7 @@ class Node_Test extends PHPUnit_Framework_TestCase
{
/**
* SetUp for test cases
- *
+ *
* @return void
*/
public function setup()
diff --git a/test/classes/plugin/PMA_PluginManager_test.php b/test/classes/plugin/PMA_PluginManager_test.php
index e39c7f178949..817ce576d34d 100644
--- a/test/classes/plugin/PMA_PluginManager_test.php
+++ b/test/classes/plugin/PMA_PluginManager_test.php
@@ -13,16 +13,16 @@
/**
* Dummy testObserver
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_TestObserver implements SplObserver
{
/**
* udpate
- *
+ *
* @param SplSubject $subject subject for observer
- *
+ *
* @return null
*/
public function update(SplSubject $subject)
@@ -51,16 +51,16 @@ function setup()
$GLOBALS['PMA_Config'] = new PMA_Config();
$GLOBALS['PMA_Config']->enableBc();
$GLOBALS['server'] = 0;
-
+
$this->object = new PluginManager(null);
-
+
$this->attrStorage = new \ReflectionProperty('PluginManager', '_storage');
$this->attrStorage->setAccessible(true);
}
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -70,7 +70,7 @@ public function tearDown()
/**
* Test for PluginManager::__construct
- *
+ *
* @return void
*/
public function testConstructor()
@@ -83,7 +83,7 @@ public function testConstructor()
/**
* Test for PluginManager::attach
- *
+ *
* @return void
*/
public function testAttach()
@@ -107,7 +107,7 @@ public function testAttach()
/**
* Test for PluginManager::detach
- *
+ *
* @return void
*/
public function testDetach()
@@ -132,13 +132,13 @@ public function testDetach()
* Test for
* - PluginManager::getStorage
* - PluginManager::setStorage
- *
+ *
* @return void
*/
public function testSetGetStorage()
{
$s = new SplObjectStorage();
- $o1 = new StdClass;
+ $o1 = new StdClass;
$s[$o1] = 'testData';
$this->object->setStorage($s);
@@ -153,7 +153,7 @@ public function testSetGetStorage()
* Test for
* - PluginManager::getStatus
* - PluginManager::setStatus
- *
+ *
* @return void
*/
public function testSetGetStatus()
diff --git a/test/classes/plugin/auth/PMA_AuthenticationConfig_test.php b/test/classes/plugin/auth/PMA_AuthenticationConfig_test.php
index fe40806f77d3..32f980e2c61d 100644
--- a/test/classes/plugin/auth/PMA_AuthenticationConfig_test.php
+++ b/test/classes/plugin/auth/PMA_AuthenticationConfig_test.php
@@ -37,7 +37,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -47,7 +47,7 @@ public function tearDown()
/**
* Test for AuthenticationConfig::auth
- *
+ *
* @return void
*/
public function testAuth()
@@ -59,7 +59,7 @@ public function testAuth()
/**
* Test for AuthenticationConfig::authCheck
- *
+ *
* @return void
*/
public function testAuthCheck()
@@ -71,7 +71,7 @@ public function testAuthCheck()
/**
* Test for AuthenticationConfig::authSetUser
- *
+ *
* @return void
*/
public function testAuthSetUser()
@@ -83,7 +83,7 @@ public function testAuthSetUser()
/**
* Test for AuthenticationConfig::authFails
- *
+ *
* @return void
*/
public function testAuthFails()
@@ -94,7 +94,7 @@ public function testAuthFails()
$GLOBALS['allowDeny_forbidden'] = false;
if (!defined('PMA_USR_BROWSER_AGENT')) {
define('PMA_USR_BROWSER_AGENT', 'chrome');
-
+
$removeConstant = true;
if (! PMA_HAS_RUNKIT) {
diff --git a/test/classes/plugin/auth/PMA_AuthenticationSignon_test.php b/test/classes/plugin/auth/PMA_AuthenticationSignon_test.php
index 78e28f4acbbf..e7df0a14791c 100644
--- a/test/classes/plugin/auth/PMA_AuthenticationSignon_test.php
+++ b/test/classes/plugin/auth/PMA_AuthenticationSignon_test.php
@@ -39,7 +39,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -49,7 +49,7 @@ public function tearDown()
/**
* Test for AuthenticationSignon::auth
- *
+ *
* @return void
*/
public function testAuth()
@@ -103,7 +103,7 @@ public function testAuth()
/**
* Test for AuthenticationSignon::authCheck
- *
+ *
* @return void
*/
public function testAuthCheck()
@@ -125,7 +125,7 @@ public function testAuthCheck()
$GLOBALS['cfg']['Server']['host'] = 'localhost';
$GLOBALS['cfg']['Server']['port'] = '80';
$GLOBALS['cfg']['Server']['user'] = 'user';
-
+
$this->assertTrue(
$this->object->authCheck()
);
@@ -215,7 +215,7 @@ public function testAuthCheck()
/**
* Test for AuthenticationSignon::authSetUser
- *
+ *
* @return void
*/
public function testAuthSetUser()
@@ -240,7 +240,7 @@ public function testAuthSetUser()
/**
* Test for AuthenticationSignon::authFails
- *
+ *
* @return void
*/
public function testAuthFails()
@@ -259,7 +259,7 @@ public function testAuthFails()
// case 1
$GLOBALS['login_without_password_is_forbidden'] = true;
-
+
$this->object->authFails();
$this->assertEquals(
@@ -272,7 +272,7 @@ public function testAuthFails()
$GLOBALS['login_without_password_is_forbidden'] = null;
$GLOBALS['allowDeny_forbidden'] = true;
-
+
$this->object->authFails();
$this->assertEquals(
diff --git a/test/classes/plugin/export/PMA_ExportExcel_test.php b/test/classes/plugin/export/PMA_ExportExcel_test.php
index 48c4b7e06b73..a77a8d758786 100644
--- a/test/classes/plugin/export/PMA_ExportExcel_test.php
+++ b/test/classes/plugin/export/PMA_ExportExcel_test.php
@@ -34,7 +34,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -44,7 +44,7 @@ public function tearDown()
/**
* Test for ExportExcel::setProperties
- *
+ *
* @return void
*/
public function testSetProperties()
@@ -115,7 +115,7 @@ public function testSetProperties()
'TextPropertyItem',
$property
);
-
+
$this->assertEquals(
'null',
$property->getName()
@@ -132,7 +132,7 @@ public function testSetProperties()
'BoolPropertyItem',
$property
);
-
+
$this->assertEquals(
'removeCRLF',
$property->getName()
@@ -149,7 +149,7 @@ public function testSetProperties()
'BoolPropertyItem',
$property
);
-
+
$this->assertEquals(
'columns',
$property->getName()
@@ -166,7 +166,7 @@ public function testSetProperties()
'SelectPropertyItem',
$property
);
-
+
$this->assertEquals(
'edition',
$property->getName()
@@ -192,7 +192,7 @@ public function testSetProperties()
'HiddenPropertyItem',
$property
);
-
+
$this->assertEquals(
'structure_or_data',
$property->getName()
diff --git a/test/classes/plugin/export/PMA_ExportSql_test.php b/test/classes/plugin/export/PMA_ExportSql_test.php
index 448f7c7d8472..07fc75f47f13 100644
--- a/test/classes/plugin/export/PMA_ExportSql_test.php
+++ b/test/classes/plugin/export/PMA_ExportSql_test.php
@@ -42,7 +42,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -52,7 +52,7 @@ public function tearDown()
/**
* Test for ExportSql::setProperties
- *
+ *
* @return void
*/
public function testSetProperties()
@@ -71,7 +71,7 @@ public function testSetProperties()
}
if (PMA_MYSQL_INT_VERSION <= 50100) {
$restoreMySQLIntVersion = PMA_MYSQL_INT_VERSION;
- runkit_constant_redefine('PMA_MYSQL_INT_VERSION', 50111);
+ runkit_constant_redefine('PMA_MYSQL_INT_VERSION', 50111);
}
}
}
@@ -261,7 +261,7 @@ public function testSetProperties()
);
$this->assertEquals(
- 'Add DROP TABLE / VIEW / PROCEDURE / FUNCTION
' .
+ 'Add DROP TABLE / VIEW / PROCEDURE / FUNCTION
' .
' / EVENT
statement',
$leaf->getText()
);
@@ -326,13 +326,13 @@ public function testSetProperties()
/**
* Test for ExportSql::setProperties
- *
+ *
* @return void
*/
public function testSetPropertiesWithDrizzle()
{
$restoreDrizzle = $restoreMySQLIntVersion = 'PMANORESTORE';
-
+
if (!PMA_DRIZZLE || PMA_MYSQL_INT_VERSION > 50100) {
if (!PMA_HAS_RUNKIT) {
$this->markTestSkipped(
@@ -345,7 +345,7 @@ public function testSetPropertiesWithDrizzle()
}
if (PMA_MYSQL_INT_VERSION > 50100) {
$restoreMySQLIntVersion = PMA_MYSQL_INT_VERSION;
- runkit_constant_redefine('PMA_MYSQL_INT_VERSION', 50000);
+ runkit_constant_redefine('PMA_MYSQL_INT_VERSION', 50000);
}
}
}
@@ -364,9 +364,9 @@ public function testSetPropertiesWithDrizzle()
$properties = $attrProperties->getValue($this->object);
$options = $properties->getOptions();
-
+
$generalOptionsArray = $options->getProperties();
-
+
$this->assertCount(
3,
$generalOptionsArray
@@ -435,7 +435,7 @@ public function testSetPropertiesWithDrizzle()
$structOption = $generalOptionsArray[1];
$properties = $structOption->getProperties();
$subgroupProps = $properties[0]->getProperties();
-
+
$this->assertContains(
'DROP TABLE
',
$subgroupProps[0]->getText()
@@ -454,7 +454,7 @@ public function testSetPropertiesWithDrizzle()
/**
* Test for ExportSql::exportRoutines
- *
+ *
* @return void
*/
public function testExportRoutines()
@@ -504,14 +504,14 @@ public function testExportRoutines()
/**
* Test for ExportSql::_exportComment
- *
+ *
* @return void
*/
public function testExportComment()
{
$method = new ReflectionMethod('ExportSql', '_exportComment');
$method->setAccessible(true);
-
+
$GLOBALS['crlf'] = '##';
$GLOBALS['sql_include_comments'] = true;
@@ -526,7 +526,7 @@ public function testExportComment()
);
$GLOBALS['sql_include_comments'] = false;
-
+
$this->assertEquals(
'',
$method->invoke($this->object, 'Comment')
@@ -542,14 +542,14 @@ public function testExportComment()
/**
* Test for ExportSql::_possibleCRLF
- *
+ *
* @return void
*/
public function testPossibleCRLF()
{
$method = new ReflectionMethod('ExportSql', '_possibleCRLF');
$method->setAccessible(true);
-
+
$GLOBALS['crlf'] = '##';
$GLOBALS['sql_include_comments'] = true;
@@ -564,7 +564,7 @@ public function testPossibleCRLF()
);
$GLOBALS['sql_include_comments'] = false;
-
+
$this->assertEquals(
'',
$method->invoke($this->object, 'Comment')
@@ -580,7 +580,7 @@ public function testPossibleCRLF()
/**
* Test for ExportSql::exportFooter
- *
+ *
* @return void
*/
public function testExportFooter()
@@ -614,7 +614,7 @@ public function testExportFooter()
$dbi->expects($this->once())
->method('query')
->with('SET time_zone = "GMT"');
-
+
$GLOBALS['dbi'] = $dbi;
$this->expectOutputString(
@@ -636,7 +636,7 @@ public function testExportFooter()
/**
* Test for ExportSql::exportHeader
- *
+ *
* @return void
*/
public function testExportHeader()
@@ -686,7 +686,7 @@ public function testExportHeader()
$dbi->expects($this->once())
->method('query')
->with('SET time_zone = "+00:00"');
-
+
$GLOBALS['dbi'] = $dbi;
ob_start();
@@ -704,12 +704,12 @@ public function testExportHeader()
'h2C',
$result
);
-
+
$this->assertContains(
"SET FOREIGN_KEY_CHECKS=0;\n",
$result
);
-
+
$this->assertContains(
"40101 SET",
$result
@@ -719,7 +719,7 @@ public function testExportHeader()
"SET FOREIGN_KEY_CHECKS=0;\n" .
"SET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\n" .
"SET AUTOCOMMIT = 0;\n" .
- "START TRANSACTION;\n" .
+ "START TRANSACTION;\n" .
"SET time_zone = \"+00:00\";\n",
$result
);
@@ -732,7 +732,7 @@ public function testExportHeader()
/**
* Test for ExportSql::exportDBCreate
- *
+ *
* @return void
*/
public function testExportDBCreate()
@@ -816,7 +816,7 @@ public function testExportDBCreate()
/**
* Test for ExportSql::exportDBHeader
- *
+ *
* @return void
*/
public function testExportDBHeader()
@@ -825,7 +825,7 @@ public function testExportDBHeader()
$GLOBALS['sql_backquotes'] = '';
$GLOBALS['sql_include_comments'] = true;
$GLOBALS['crlf'] = "\n";
-
+
ob_start();
$this->assertTrue(
$this->object->exportDBHeader('testDB')
@@ -840,7 +840,7 @@ public function testExportDBHeader()
// case 2
unset($GLOBALS['sql_compatibility']);
unset($GLOBALS['sql_backquotes']);
-
+
ob_start();
$this->assertTrue(
$this->object->exportDBHeader('testDB')
@@ -855,7 +855,7 @@ public function testExportDBHeader()
/**
* Test for ExportSql::exportDBFooter
- *
+ *
* @return void
*/
public function testExportDBFooterWithNewerMySQLVersion()
@@ -940,7 +940,7 @@ public function testExportDBFooterWithNewerMySQLVersion()
/**
* Test for ExportSql::exportDBFooter
- *
+ *
* @return void
*/
public function testExportDBFooterWithOlderMySQLVersion()
@@ -987,7 +987,7 @@ public function testExportDBFooterWithOlderMySQLVersion()
/**
* Test for ExportSql::getTableDefStandIn
- *
+ *
* @return void
*/
public function testGetTableDefStandIn()
@@ -1025,7 +1025,7 @@ public function testGetTableDefStandIn()
/**
* Test for ExportSql::_getTableDefForView
- *
+ *
* @return void
*/
public function testGetTableDefForView()
@@ -1105,7 +1105,7 @@ public function testGetTableDefForView()
/**
* Test for ExportSql::getTableDef
- *
+ *
* @return void
*/
public function testGetTableDefWithoutDrizzle()
@@ -1189,7 +1189,7 @@ public function testGetTableDefWithoutDrizzle()
"CREATE TABLE `db`.`table`,\n CONSTRAINT KEYS \nFOREIGN KEY\n) " .
"unsigned NOT NULL\n(\r\n"
);
-
+
$dbi->expects($this->once())
->method('fetchRow')
->with('res')
@@ -1241,7 +1241,7 @@ public function testGetTableDefWithoutDrizzle()
'-- Constraints for table "table"',
$GLOBALS['sql_constraints']
);
-
+
$this->assertContains(
'ALTER TABLE "table"' . "\n",
$GLOBALS['sql_constraints']
@@ -1271,7 +1271,7 @@ public function testGetTableDefWithoutDrizzle()
'ALTER TABLE "db"."table"' . "\n",
$GLOBALS['sql_drop_foreign_keys']
);
-
+
$this->assertContains(
'DROP FOREIGN KEY KEYS',
$GLOBALS['sql_drop_foreign_keys']
@@ -1284,7 +1284,7 @@ public function testGetTableDefWithoutDrizzle()
/**
* Test for ExportSql::getTableDef
- *
+ *
* @return void
*/
public function testGetTableDefWithDrizzle()
@@ -1366,7 +1366,7 @@ public function testGetTableDefWithDrizzle()
"CREATE TABLE `db`.`table` ROW_FORMAT='row',\n CONSTRAINT "
. "KEYS \nFOREIGN KEY\n) unsigned NOT NULL\n(\r"
);
-
+
$dbi->expects($this->once())
->method('fetchRow')
->with('res')
@@ -1398,7 +1398,7 @@ public function testGetTableDefWithDrizzle()
'-- Constraints for table',
$GLOBALS['sql_constraints']
);
-
+
$this->assertNotContains(
'-- Constraints for table "table"',
$GLOBALS['sql_constraints']
@@ -1411,7 +1411,7 @@ public function testGetTableDefWithDrizzle()
/**
* Test for ExportSql::getTableDef
- *
+ *
* @return void
*/
public function testGetTableDefWithError()
@@ -1514,7 +1514,7 @@ public function testGetTableDefWithError()
/**
* Test for ExportSql::_getTableComments
- *
+ *
* @return void
*/
public function testGetTableComments()
@@ -1585,12 +1585,12 @@ public function testGetTableComments()
/**
* Test for ExportSql::exportStructure
- *
+ *
* @return void
*/
public function testExportStructure()
{
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
@@ -1651,7 +1651,7 @@ public function testExportStructure()
'dumpText1',
$result
);
-
+
// case 2
unset($GLOBALS['sql_compatibility']);
unset($GLOBALS['sql_backquotes']);
@@ -1747,7 +1747,7 @@ public function testExportStructure()
/**
* Test for ExportSql::exportData
- *
+ *
* @return void
*/
public function testExportData()
@@ -1879,7 +1879,7 @@ public function testExportData()
/**
* Test for ExportSql::exportData
- *
+ *
* @return void
*/
public function testExportDataWithUpdate()
@@ -1973,7 +1973,7 @@ public function testExportDataWithUpdate()
/**
* Test for ExportSql::exportData
- *
+ *
* @return void
*/
public function testExportDataWithIsView()
@@ -2011,7 +2011,7 @@ public function testExportDataWithIsView()
/**
* Test for ExportSql::exportData
- *
+ *
* @return void
*/
public function testExportDataWithError()
@@ -2044,12 +2044,12 @@ public function testExportDataWithError()
/**
* Test for ExportSql::_makeCreateTableMSSQLCompatible
- *
+ *
* @return void
*/
public function testMakeCreateTableMSSQLCompatible()
{
-
+
$query = "CREATE TABLE IF NOT EXISTS (\" date DEFAULT NULL,\n" .
"\" date DEFAULT NULL\n\" date NOT NULL,\n\" date NOT NULL\n," .
" \" date NOT NULL DEFAULT 'asd'," .
@@ -2066,7 +2066,7 @@ public function testMakeCreateTableMSSQLCompatible()
" \" float(22,2,) NOT NULL,\n" .
" \" double NOT NULL\n" .
" \" double NOT NULL DEFAULT '213'\n";
-
+
$method = new ReflectionMethod(
'ExportSql', '_makeCreateTableMSSQLCompatible'
);
diff --git a/test/classes/plugin/export/PMA_ExportTexytext_test.php b/test/classes/plugin/export/PMA_ExportTexytext_test.php
index 733a46ae9495..b07ffe91237c 100644
--- a/test/classes/plugin/export/PMA_ExportTexytext_test.php
+++ b/test/classes/plugin/export/PMA_ExportTexytext_test.php
@@ -42,7 +42,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -52,7 +52,7 @@ public function tearDown()
/**
* Test for ExportTexytext::setProperties
- *
+ *
* @return void
*/
public function testSetProperties()
@@ -124,7 +124,7 @@ public function testSetProperties()
'RadioPropertyItem',
$property
);
-
+
$generalOptions = array_shift($generalOptionsArray);
$this->assertInstanceOf(
@@ -145,7 +145,7 @@ public function testSetProperties()
'BoolPropertyItem',
$property
);
-
+
$this->assertEquals(
'columns',
$property->getName()
@@ -157,7 +157,7 @@ public function testSetProperties()
'TextPropertyItem',
$property
);
-
+
$this->assertEquals(
'null',
$property->getName()
@@ -166,7 +166,7 @@ public function testSetProperties()
/**
* Test for ExportTexytext::exportHeader
- *
+ *
* @return void
*/
public function testExportHeader()
@@ -178,7 +178,7 @@ public function testExportHeader()
/**
* Test for ExportTexytext::exportFooter
- *
+ *
* @return void
*/
public function testExportFooter()
@@ -190,7 +190,7 @@ public function testExportFooter()
/**
* Test for ExportTexytext::exportDBHeader
- *
+ *
* @return void
*/
public function testExportDBHeader()
@@ -205,7 +205,7 @@ public function testExportDBHeader()
/**
* Test for ExportTexytext::exportDBFooter
- *
+ *
* @return void
*/
public function testExportDBFooter()
@@ -217,7 +217,7 @@ public function testExportDBFooter()
/**
* Test for ExportTexytext::exportDBCreate
- *
+ *
* @return void
*/
public function testExportDBCreate()
@@ -229,7 +229,7 @@ public function testExportDBCreate()
/**
* Test for ExportTexytext::exportData
- *
+ *
* @return void
*/
public function testExportData()
@@ -287,12 +287,12 @@ public function testExportData()
"|>|0|test",
$result
);
-
+
}
/**
* Test for ExportTexytext::getTableDefStandIn
- *
+ *
* @return void
*/
public function testGetTableDefStandIn()
@@ -353,7 +353,7 @@ public function testGetTableDefStandIn()
/**
* Test for ExportTexytext::getTableDef
- *
+ *
* @return void
*/
public function testGetTableDef()
@@ -419,7 +419,7 @@ public function testGetTableDef()
)
);
-
+
$columns = array(
'Field' => 'fname',
'Comment' => 'comm'
@@ -429,7 +429,7 @@ public function testGetTableDef()
->method('getColumns')
->with('db', 'table')
->will($this->returnValue(array($columns)));
-
+
$GLOBALS['dbi'] = $dbi;
$this->object->expects($this->exactly(1))
@@ -465,7 +465,7 @@ public function testGetTableDef()
/**
* Test for ExportTexytext::getTriggers
- *
+ *
* @return void
*/
public function testGetTriggers()
@@ -482,7 +482,7 @@ public function testGetTriggers()
'definition' => 'def'
)
);
-
+
$dbi->expects($this->once())
->method('getTriggers')
->with('database', 'tagetMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
@@ -549,7 +549,7 @@ public function testExportStructure()
->will($this->returnValue('dumpText4'));
$GLOBALS['dbi'] = $dbi;
-
+
// case 1
ob_start();
$this->assertTrue(
@@ -609,7 +609,7 @@ public function testExportStructure()
/**
* Test for ExportTexytext::formatOneColumnDefinition
- *
+ *
* @return void
*/
public function testFormatOneColumnDefinition()
diff --git a/test/classes/plugin/export/PMA_ExportXml_test.php b/test/classes/plugin/export/PMA_ExportXml_test.php
index 822edd042c39..c3647bec8496 100644
--- a/test/classes/plugin/export/PMA_ExportXml_test.php
+++ b/test/classes/plugin/export/PMA_ExportXml_test.php
@@ -43,7 +43,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -53,7 +53,7 @@ public function tearDown()
/**
* Test for ExportXml::setProperties
- *
+ *
* @return void
*/
public function testSetProperties()
@@ -133,7 +133,7 @@ public function testSetProperties()
'HiddenPropertyItem',
$property
);
-
+
$generalOptions = array_shift($generalOptionsArray);
$this->assertInstanceOf(
@@ -194,7 +194,7 @@ public function testSetProperties()
'data',
$generalOptions->getName()
);
-
+
$generalProperties = $generalOptions->getProperties();
$property = array_shift($generalProperties);
@@ -203,7 +203,7 @@ public function testSetProperties()
'BoolPropertyItem',
$property
);
-
+
if ($restoreDrizzle !== "PMANORESTORE") {
runkit_constant_redefine('PMA_DRIZZLE', $restoreDrizzle);
}
@@ -211,7 +211,7 @@ public function testSetProperties()
/**
* Test for ExportXml::exportHeader
- *
+ *
* @return void
*/
public function testExportHeaderWithoutDrizzle()
@@ -447,7 +447,7 @@ public function testExportHeaderWithoutDrizzle()
'<pma:structure_schemas>' . "\n" .
' <pma:database name="d<"b" collat' .
'ion="utf8_general_ci" charset="utf-8">' . "\n" .
- ' </pma:database>' . "\n" .
+ ' </pma:database>' . "\n" .
' </pma:structure_schemas>',
$result
);
@@ -459,7 +459,7 @@ public function testExportHeaderWithoutDrizzle()
/**
* Test for ExportXml::exportHeader
- *
+ *
* @return void
*/
public function testExportHeaderWithDrizzle()
@@ -521,7 +521,7 @@ public function testExportHeaderWithDrizzle()
->method('fetchResult')
->will($this->returnValue(false));
-
+
$GLOBALS['dbi'] = $dbi;
$GLOBALS['tables'] = array();
@@ -540,7 +540,7 @@ public function testExportHeaderWithDrizzle()
/**
* Test for ExportXml::exportFooter
- *
+ *
* @return void
*/
public function testExportFooter()
@@ -555,7 +555,7 @@ public function testExportFooter()
/**
* Test for ExportXml::exportDBHeader
- *
+ *
* @return void
*/
public function testExportDBHeader()
@@ -582,7 +582,7 @@ public function testExportDBHeader()
/**
* Test for ExportXml::exportDBFooter
- *
+ *
* @return void
*/
public function testExportDBFooter()
@@ -609,7 +609,7 @@ public function testExportDBFooter()
/**
* Test for ExportXml::exportDBCreate
- *
+ *
* @return void
*/
public function testExportDBCreate()
@@ -621,7 +621,7 @@ public function testExportDBCreate()
/**
* Test for ExportXml::exportData
- *
+ *
* @return void
*/
public function testExportData()
@@ -678,23 +678,23 @@ public function testExportData()
"<table name="ta<ble">",
$result
);
-
+
$this->assertContains(
"<column name="fName1">NULL</column>",
$result
);
-
+
$this->assertContains(
"<column name="fNa"me2"><a>" .
"</column>",
$result
);
-
+
$this->assertContains(
"<column name="fName3">NULL</column>",
$result
);
-
+
$this->assertContains(
"</table>",
$result
diff --git a/test/classes/plugin/export/PMA_ExportYaml_test.php b/test/classes/plugin/export/PMA_ExportYaml_test.php
index eeeb75f0344d..95f8ad2912ef 100644
--- a/test/classes/plugin/export/PMA_ExportYaml_test.php
+++ b/test/classes/plugin/export/PMA_ExportYaml_test.php
@@ -40,7 +40,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -50,7 +50,7 @@ public function tearDown()
/**
* Test for ExportYaml::setProperties
- *
+ *
* @return void
*/
public function testSetProperties()
@@ -121,7 +121,7 @@ public function testSetProperties()
/**
* Test for ExportYaml::exportHeader
- *
+ *
* @return void
*/
public function testExportHeader()
@@ -140,7 +140,7 @@ public function testExportHeader()
/**
* Test for ExportYaml::exportFooter
- *
+ *
* @return void
*/
public function testExportFooter()
@@ -155,7 +155,7 @@ public function testExportFooter()
/**
* Test for ExportYaml::exportDBHeader
- *
+ *
* @return void
*/
public function testExportDBHeader()
@@ -167,7 +167,7 @@ public function testExportDBHeader()
/**
* Test for ExportYaml::exportDBFooter
- *
+ *
* @return void
*/
public function testExportDBFooter()
@@ -179,7 +179,7 @@ public function testExportDBFooter()
/**
* Test for ExportYaml::exportDBCreate
- *
+ *
* @return void
*/
public function testExportDBCreate()
@@ -191,7 +191,7 @@ public function testExportDBCreate()
/**
* Test for ExportYaml::exportData
- *
+ *
* @return void
*/
public function testExportData()
diff --git a/test/classes/plugin/export/PMA_TableProperty_test.php b/test/classes/plugin/export/PMA_TableProperty_test.php
index a62441004e72..847be701cac1 100644
--- a/test/classes/plugin/export/PMA_TableProperty_test.php
+++ b/test/classes/plugin/export/PMA_TableProperty_test.php
@@ -35,7 +35,7 @@ function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -83,7 +83,7 @@ public function testConstructor()
/**
* Test for TableProperty::getPureType
- *
+ *
* @return void
*/
public function testGetPureType()
@@ -105,10 +105,10 @@ public function testGetPureType()
/**
* Test for TableProperty::isNotNull
- *
+ *
* @param string $nullable nullable value
* @param string $expected expected output
- *
+ *
* @return void
* @dataProvider isNotNullProvider
*/
@@ -124,7 +124,7 @@ public function testIsNotNull($nullable, $expected)
/**
* Data provider for testIsNotNull
- *
+ *
* @return array Test Data
*/
public function isNotNullProvider()
@@ -138,10 +138,10 @@ public function isNotNullProvider()
/**
* Test for TableProperty::isUnique
- *
+ *
* @param string $key key value
* @param string $expected expected output
- *
+ *
* @return void
* @dataProvider isUniqueProvider
*/
@@ -157,7 +157,7 @@ public function testIsUnique($key, $expected)
/**
* Data provider for testIsUnique
- *
+ *
* @return array Test Data
*/
public function isUniqueProvider()
@@ -173,10 +173,10 @@ public function isUniqueProvider()
/**
* Test for TableProperty::getDotNetPrimitiveType
- *
+ *
* @param string $type type value
* @param string $expected expected output
- *
+ *
* @return void
* @dataProvider getDotNetPrimitiveTypeProvider
*/
@@ -192,7 +192,7 @@ public function testGetDotNetPrimitiveType($type, $expected)
/**
* Data provider for testGetDotNetPrimitiveType
- *
+ *
* @return array Test Data
*/
public function getDotNetPrimitiveTypeProvider()
@@ -214,10 +214,10 @@ public function getDotNetPrimitiveTypeProvider()
/**
* Test for TableProperty::getDotNetObjectType
- *
+ *
* @param string $type type value
* @param string $expected expected output
- *
+ *
* @return void
* @dataProvider getDotNetObjectTypeProvider
*/
@@ -233,7 +233,7 @@ public function testGetDotNetObjectType($type, $expected)
/**
* Data provider for testGetDotNetObjectType
- *
+ *
* @return array Test Data
*/
public function getDotNetObjectTypeProvider()
@@ -255,7 +255,7 @@ public function getDotNetObjectTypeProvider()
/**
* Test for TableProperty::getIndexName
- *
+ *
* @return void
*/
public function testGetIndexName()
@@ -278,7 +278,7 @@ public function testGetIndexName()
/**
* Test for TableProperty::isPK
- *
+ *
* @return void
*/
public function testIsPK()
@@ -298,7 +298,7 @@ public function testIsPK()
/**
* Test for TableProperty::formatCs
- *
+ *
* @return void
*/
public function testFormatCs()
@@ -313,7 +313,7 @@ public function testFormatCs()
/**
* Test for TableProperty::formatXml
- *
+ *
* @return void
*/
public function testFormatXml()
@@ -328,7 +328,7 @@ public function testFormatXml()
/**
* Test for TableProperty::format
- *
+ *
* @return void
*/
public function testFormat()
diff --git a/test/classes/plugin/import/ImportMediawiki_test.php b/test/classes/plugin/import/ImportMediawiki_test.php
index 2b024b07ed99..035dcfd9d939 100644
--- a/test/classes/plugin/import/ImportMediawiki_test.php
+++ b/test/classes/plugin/import/ImportMediawiki_test.php
@@ -50,17 +50,17 @@ protected function setUp()
$GLOBALS['plugin_param'] = 'database';
$this->object = new ImportMediawiki();
- //setting
+ //setting
$GLOBALS['finished'] = false;
$GLOBALS['read_limit'] = 100000000;
$GLOBALS['offset'] = 0;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['cfg']['ServerDefault'] = 0;
$GLOBALS['cfg']['AllowUserDropDatabase'] = false;
-
+
$GLOBALS['import_file'] = 'test/test_data/phpmyadmin.mediawiki';
$GLOBALS['import_text'] = 'ImportMediawiki_Test';
- $GLOBALS['compression'] = 'none';
+ $GLOBALS['compression'] = 'none';
$GLOBALS['read_multiply'] = 10;
$GLOBALS['import_type'] = 'Mediawiki';
$GLOBALS['import_handle'] = @fopen($GLOBALS['import_file'], 'r');
@@ -77,7 +77,7 @@ protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for getProperties
*
@@ -91,26 +91,26 @@ public function testGetProperties()
$this->assertEquals(
__('MediaWiki Table'),
$properties->getText()
- );
+ );
$this->assertEquals(
'txt',
$properties->getExtension()
- );
+ );
$this->assertEquals(
'text/plain',
$properties->getMimeType()
- );
+ );
$this->assertEquals(
array(),
$properties->getOptions()
- );
+ );
$this->assertEquals(
__('Options'),
$properties->getOptionsText()
- );
-
+ );
+
}
-
+
/**
* Test for doImport
*
@@ -121,22 +121,22 @@ public function testGetProperties()
public function testDoImport()
{
//$import_notice will show the import detail result
- global $import_notice;
-
+ global $import_notice;
+
//Mock DBI
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
$GLOBALS['dbi'] = $dbi;
-
+
//Test function called
$this->object->doImport();
-
- // If import successfully, PMA will show all databases and
+
+ // If import successfully, PMA will show all databases and
// tables imported as following HTML Page
/*
- The following structures have either been created or altered. Here you
+ The following structures have either been created or altered. Here you
can:
View a structure's contents by clicking on its name
Change any of its settings by clicking the corresponding "Options" link
@@ -144,25 +144,25 @@ public function testDoImport()
mediawiki_DB (Options)
pma_bookmarktest (Structure) (Options)
- */
-
+ */
+
//asset that all databases and tables are imported
$this->assertContains(
'The following structures have either been created or altered.',
$import_notice
- );
+ );
$this->assertContains(
'Go to database: `mediawiki_DB`',
$import_notice
- );
+ );
$this->assertContains(
'Edit settings for `mediawiki_DB`',
$import_notice
- );
+ );
$this->assertContains(
'Go to table: `pma_bookmarktest`',
$import_notice
- );
+ );
$this->assertContains(
'Edit settings for `pma_bookmarktest`',
$import_notice
@@ -170,7 +170,7 @@ public function testDoImport()
$this->assertEquals(
true,
$GLOBALS['finished']
- );
-
+ );
+
}
}
diff --git a/test/classes/plugin/import/ImportSql_test.php b/test/classes/plugin/import/ImportSql_test.php
index 2d590e744b92..3e1da3267de0 100644
--- a/test/classes/plugin/import/ImportSql_test.php
+++ b/test/classes/plugin/import/ImportSql_test.php
@@ -4,7 +4,7 @@
*
* @package PhpMyAdmin-test
*/
-
+
/*
* we must set $GLOBALS['server'] here
* since 'check_user_privileges.lib.php' will use it globally
@@ -45,20 +45,20 @@ class ImportSql_Test extends PHPUnit_Framework_TestCase
* @return void
*/
protected function setUp()
- {
- $this->object = new ImportSql();
+ {
+ $this->object = new ImportSql();
- //setting
+ //setting
$GLOBALS['finished'] = false;
$GLOBALS['read_limit'] = 100000000;
$GLOBALS['offset'] = 0;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['cfg']['ServerDefault'] = 0;
$GLOBALS['cfg']['AllowUserDropDatabase'] = false;
-
+
$GLOBALS['import_file'] = 'test/test_data/pma_bookmark.sql';
$GLOBALS['import_text'] = 'ImportSql_Test';
- $GLOBALS['compression'] = 'none';
+ $GLOBALS['compression'] = 'none';
$GLOBALS['read_multiply'] = 10;
$GLOBALS['import_type'] = 'Xml';
$GLOBALS['import_handle'] = @fopen($GLOBALS['import_file'], 'r');
@@ -75,7 +75,7 @@ protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for doImport
*
@@ -88,36 +88,36 @@ public function testDoImport()
//$sql_query_disabled will show the import SQL detail
global $sql_query, $sql_query_disabled;
$sql_query_disabled = false;
-
+
//Mock DBI
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
$GLOBALS['dbi'] = $dbi;
-
+
//Test function called
$this->object->doImport();
-
+
//asset that all sql are executed
$this->assertContains(
'SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";',
$sql_query
- );
+ );
$this->assertContains(
'CREATE TABLE IF NOT EXISTS `pma_bookmark`',
$sql_query
- );
+ );
$this->assertContains(
'INSERT INTO `pma_bookmark` (`id`, `dbase`, `user`, `label`, `query`) '
. 'VALUES',
$sql_query
- );
-
+ );
+
$this->assertEquals(
true,
$GLOBALS['finished']
- );
-
+ );
+
}
}
diff --git a/test/classes/plugin/import/ImportXml_test.php b/test/classes/plugin/import/ImportXml_test.php
index 1f3d0fa4258f..4b846c03b546 100644
--- a/test/classes/plugin/import/ImportXml_test.php
+++ b/test/classes/plugin/import/ImportXml_test.php
@@ -4,7 +4,7 @@
*
* @package PhpMyAdmin-test
*/
-
+
/*
* we must set $GLOBALS['server'] here
* since 'check_user_privileges.lib.php' will use it globally
@@ -44,21 +44,21 @@ class ImportXml_Test extends PHPUnit_Framework_TestCase
* @return void
*/
protected function setUp()
- {
- $this->object = new ImportXml();
+ {
+ $this->object = new ImportXml();
- //setting
+ //setting
$GLOBALS['finished'] = false;
$GLOBALS['read_limit'] = 100000000;
$GLOBALS['offset'] = 0;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['cfg']['ServerDefault'] = 0;
$GLOBALS['cfg']['AllowUserDropDatabase'] = false;
-
+
$GLOBALS['import_file'] = 'test/test_data/phpmyadmin_importXML_'
. 'For_Testing.xml';
$GLOBALS['import_text'] = 'ImportXml_Test';
- $GLOBALS['compression'] = 'none';
+ $GLOBALS['compression'] = 'none';
$GLOBALS['read_multiply'] = 10;
$GLOBALS['import_type'] = 'Xml';
$GLOBALS['import_handle'] = @fopen($GLOBALS['import_file'], 'r');
@@ -75,7 +75,7 @@ protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for getProperties
*
@@ -89,26 +89,26 @@ public function testGetProperties()
$this->assertEquals(
__('XML'),
$properties->getText()
- );
+ );
$this->assertEquals(
'xml',
$properties->getExtension()
- );
+ );
$this->assertEquals(
'text/xml',
$properties->getMimeType()
- );
+ );
$this->assertEquals(
array(),
$properties->getOptions()
- );
+ );
$this->assertEquals(
__('Options'),
$properties->getOptionsText()
- );
-
+ );
+
}
-
+
/**
* Test for doImport
*
@@ -119,18 +119,18 @@ public function testGetProperties()
public function testDoImport()
{
//$import_notice will show the import detail result
- global $import_notice;
-
+ global $import_notice;
+
//Mock DBI
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
$GLOBALS['dbi'] = $dbi;
-
+
//Test function called
$this->object->doImport();
-
- // If import successfully, PMA will show all databases and tables
+
+ // If import successfully, PMA will show all databases and tables
// imported as following HTML Page
/*
The following structures have either been created or altered. Here you
@@ -141,25 +141,25 @@ public function testDoImport()
phpmyadmintest (Options)
pma_bookmarktest (Structure) (Options)
- */
-
+ */
+
//asset that all databases and tables are imported
$this->assertContains(
'The following structures have either been created or altered.',
$import_notice
- );
+ );
$this->assertContains(
'Go to database: `phpmyadmintest`',
$import_notice
- );
+ );
$this->assertContains(
'Edit settings for `phpmyadmintest`',
$import_notice
- );
+ );
$this->assertContains(
'Go to table: `pma_bookmarktest`',
$import_notice
- );
+ );
$this->assertContains(
'Edit settings for `pma_bookmarktest`',
$import_notice
@@ -167,8 +167,8 @@ public function testDoImport()
$this->assertEquals(
true,
$GLOBALS['finished']
- );
-
+ );
+
}
}
diff --git a/test/classes/plugin/transformations/Image_PNG_Inline_test.php b/test/classes/plugin/transformations/Image_PNG_Inline_test.php
index d72554e28b14..01762e778317 100644
--- a/test/classes/plugin/transformations/Image_PNG_Inline_test.php
+++ b/test/classes/plugin/transformations/Image_PNG_Inline_test.php
@@ -124,7 +124,7 @@ public function testApplyTransformation()
$buffer = "PMA_PNG_Inline";
$options = array("./image/", "200", "wrapper_link"=>"PMA_wrapper_link");
$result = '';
diff --git a/test/classes/plugin/transformations/Text_Plain_Append_test.php b/test/classes/plugin/transformations/Text_Plain_Append_test.php
index b5abf2a0c2f5..6a7406606023 100644
--- a/test/classes/plugin/transformations/Text_Plain_Append_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_Append_test.php
@@ -34,7 +34,7 @@ class Text_Plain_Append_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
- $this->object = new Text_Plain_Append(new PluginManager());
+ $this->object = new Text_Plain_Append(new PluginManager());
}
/**
@@ -48,7 +48,7 @@ protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for getInfo
*
@@ -58,14 +58,14 @@ protected function tearDown()
*/
public function testGetInfo()
{
- $info = 'Appends text to a string. The only option is '
+ $info = 'Appends text to a string. The only option is '
. 'the text to be appended'
- . ' (enclosed in single quotes, default empty string).';
+ . ' (enclosed in single quotes, default empty string).';
$this->assertEquals(
$info,
Text_Plain_Append::getInfo()
- );
-
+ );
+
}
/**
@@ -76,11 +76,11 @@ public function testGetInfo()
* @group medium
*/
public function testGetName()
- {
+ {
$this->assertEquals(
"Append",
Text_Plain_Append::getName()
- );
+ );
}
/**
@@ -91,11 +91,11 @@ public function testGetName()
* @group medium
*/
public function testGetMIMEType()
- {
+ {
$this->assertEquals(
"Text",
Text_Plain_Append::getMIMEType()
- );
+ );
}
/**
@@ -106,11 +106,11 @@ public function testGetMIMEType()
* @group medium
*/
public function testGetMIMESubtype()
- {
+ {
$this->assertEquals(
"Plain",
Text_Plain_Append::getMIMESubtype()
- );
+ );
}
/**
@@ -127,19 +127,19 @@ public function testApplyTransformation()
$this->assertEquals(
"PMA_BUFFERoption1",
$this->object->applyTransformation($buffer, $options)
- );
+ );
//no options
$result = "PMA_BUFFER";
$this->assertEquals(
$result,
$this->object->applyTransformation($buffer)
);
- //html string
+ //html string
$result = "PMA_BUFFER<a>abc</a>";
$options = array("abc");
$this->assertEquals(
$result,
$this->object->applyTransformation($buffer, $options)
- );
+ );
}
}
diff --git a/test/classes/plugin/transformations/Text_Plain_Dateformat_test.php b/test/classes/plugin/transformations/Text_Plain_Dateformat_test.php
index d7b22fe0c3f3..6c689c47111b 100644
--- a/test/classes/plugin/transformations/Text_Plain_Dateformat_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_Dateformat_test.php
@@ -165,7 +165,7 @@ public function testApplyTransformation()
//string
$timestamp = "20100201";
- $result = ''
+ $result = ''
. 'Feb 01, 2010 at 12:00 AM';
$this->assertEquals(
$result,
diff --git a/test/classes/plugin/transformations/Text_Plain_External_test.php b/test/classes/plugin/transformations/Text_Plain_External_test.php
index 8824ea1e42bd..c9a79accd433 100644
--- a/test/classes/plugin/transformations/Text_Plain_External_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_External_test.php
@@ -156,8 +156,8 @@ public function testApplyTransformationNoWrap()
$this->object->applyTransformationNoWrap($options)
);
$options = array(
- "/dev/null -i -wrap -q",
- "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
"/dev/null -i -wrap -q", 1
);
$this->assertEquals(
@@ -165,8 +165,8 @@ public function testApplyTransformationNoWrap()
$this->object->applyTransformationNoWrap($options)
);
$options = array(
- "/dev/null -i -wrap -q",
- "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
"/dev/null -i -wrap -q", "1"
);
$this->assertEquals(
@@ -174,9 +174,9 @@ public function testApplyTransformationNoWrap()
$this->object->applyTransformationNoWrap($options)
);
$options = array(
- "/dev/null -i -wrap -q",
- "/dev/null -i -wrap -q",
- "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
+ "/dev/null -i -wrap -q",
2
);
$this->assertEquals(
diff --git a/test/classes/plugin/transformations/Text_Plain_Imagelink_test.php b/test/classes/plugin/transformations/Text_Plain_Imagelink_test.php
index 1fccd5099061..19c48a6c37c4 100644
--- a/test/classes/plugin/transformations/Text_Plain_Imagelink_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_Imagelink_test.php
@@ -60,7 +60,7 @@ public function testGetInfo()
{
$info = 'Displays an image and a link; '
. 'the column contains the filename. The first option'
- . ' is a URL prefix like "http://www.example.com/". '
+ . ' is a URL prefix like "http://www.example.com/". '
. 'The second and third options'
. ' are the width and the height in pixels.';
$this->assertEquals(
diff --git a/test/classes/plugin/transformations/Text_Plain_Longtoipv4_test.php b/test/classes/plugin/transformations/Text_Plain_Longtoipv4_test.php
index 7b8afeec5788..60418cbf8718 100644
--- a/test/classes/plugin/transformations/Text_Plain_Longtoipv4_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_Longtoipv4_test.php
@@ -35,7 +35,7 @@ class Text_Plain_Longtoipv4_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
- $this->object = new Text_Plain_Longtoipv4(new PluginManager());
+ $this->object = new Text_Plain_Longtoipv4(new PluginManager());
}
/**
@@ -49,7 +49,7 @@ protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for getInfo
*
@@ -60,12 +60,12 @@ protected function tearDown()
public function testGetInfo()
{
$info = 'Converts an (IPv4) Internet network address into a string in'
- . ' Internet standard dotted format.';
+ . ' Internet standard dotted format.';
$this->assertEquals(
$info,
Text_Plain_Longtoipv4::getInfo()
- );
-
+ );
+
}
/**
@@ -76,11 +76,11 @@ public function testGetInfo()
* @group medium
*/
public function testGetName()
- {
+ {
$this->assertEquals(
"Long To IPv4",
Text_Plain_Longtoipv4::getName()
- );
+ );
}
/**
@@ -91,11 +91,11 @@ public function testGetName()
* @group medium
*/
public function testGetMIMEType()
- {
+ {
$this->assertEquals(
"Text",
Text_Plain_Longtoipv4::getMIMEType()
- );
+ );
}
/**
@@ -106,11 +106,11 @@ public function testGetMIMEType()
* @group medium
*/
public function testGetMIMESubtype()
- {
+ {
$this->assertEquals(
"Plain",
Text_Plain_Longtoipv4::getMIMESubtype()
- );
+ );
}
/**
@@ -127,14 +127,14 @@ public function testApplyTransformation()
$this->assertEquals(
"2.143.92.40",
$this->object->applyTransformation($buffer, $options)
- );
-
- //too big
+ );
+
+ //too big
$buffer = 4294967295;
$options = array("option1", "option2");
$this->assertEquals(
"255.255.255.255",
$this->object->applyTransformation($buffer, $options)
- );
+ );
}
}
diff --git a/test/classes/plugin/transformations/Text_Plain_Substring_test.php b/test/classes/plugin/transformations/Text_Plain_Substring_test.php
index 05daea86b9ce..51be484ba205 100644
--- a/test/classes/plugin/transformations/Text_Plain_Substring_test.php
+++ b/test/classes/plugin/transformations/Text_Plain_Substring_test.php
@@ -35,7 +35,7 @@ class Text_Plain_Substring_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
- $this->object = new Text_Plain_Substring(new PluginManager());
+ $this->object = new Text_Plain_Substring(new PluginManager());
}
/**
@@ -63,11 +63,11 @@ public function testGetInfo()
. ' characters to skip from the beginning of the string (Default 0).'
. ' The second option is the number of characters to return (Default:'
. ' until end of string). The third option is the string to append';
-
+
$this->assertContains(
$info,
Text_Plain_Substring::getInfo()
- );
+ );
}
/**
@@ -78,11 +78,11 @@ public function testGetInfo()
* @group medium
*/
public function testGetName()
- {
+ {
$this->assertEquals(
"Substring",
Text_Plain_Substring::getName()
- );
+ );
}
/**
@@ -93,11 +93,11 @@ public function testGetName()
* @group medium
*/
public function testGetMIMEType()
- {
+ {
$this->assertEquals(
"Text",
Text_Plain_Substring::getMIMEType()
- );
+ );
}
/**
@@ -108,11 +108,11 @@ public function testGetMIMEType()
* @group medium
*/
public function testGetMIMESubtype()
- {
+ {
$this->assertEquals(
"Plain",
Text_Plain_Substring::getMIMESubtype()
- );
+ );
}
/**
@@ -129,6 +129,6 @@ public function testApplyTransformation()
$this->assertEquals(
"suffixMA_suffix",
$this->object->applyTransformation($buffer, $options)
- );
+ );
}
}
diff --git a/test/classes/properties/PMA_PorpertyItem_test.php b/test/classes/properties/PMA_PorpertyItem_test.php
index 13ae842d9bd6..90c81188562b 100644
--- a/test/classes/properties/PMA_PorpertyItem_test.php
+++ b/test/classes/properties/PMA_PorpertyItem_test.php
@@ -10,7 +10,7 @@
/**
* Tests for PropertyItem class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_PropertyItem_Test extends PHPUnit_Framework_TestCase
@@ -29,7 +29,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -39,7 +39,7 @@ public function tearDown()
/**
* Test for PropertyItem::getGroup
- *
+ *
* @return void
*/
public function testGetGroup()
diff --git a/test/classes/properties/options/PMA_OptionsPropertyGroup_test.php b/test/classes/properties/options/PMA_OptionsPropertyGroup_test.php
index 134a0f9c0bc6..7e4ebcb7021f 100644
--- a/test/classes/properties/options/PMA_OptionsPropertyGroup_test.php
+++ b/test/classes/properties/options/PMA_OptionsPropertyGroup_test.php
@@ -10,7 +10,7 @@
/**
* Tests for OptionsPropertyGroup class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_OptionsPropertyGroup_Test extends PHPUnit_Framework_TestCase
@@ -29,7 +29,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -39,7 +39,7 @@ public function tearDown()
/**
* Test for OptionsPropertyGroup::addProperty
- *
+ *
* @return void
*/
public function testAddProperty()
@@ -63,7 +63,7 @@ public function testAddProperty()
/**
* Test for OptionsPropertyGroup::removeProperty
- *
+ *
* @return void
*/
public function testRemoveProperty()
@@ -95,7 +95,7 @@ public function testRemoveProperty()
/**
* Test for OptionsPropertyGroup::getGroup
- *
+ *
* @return void
*/
public function testGetGroup()
@@ -108,7 +108,7 @@ public function testGetGroup()
/**
* Test for OptionsPropertyGroup::getProperties
- *
+ *
* @return void
*/
public function testGetProperties()
@@ -125,7 +125,7 @@ public function testGetProperties()
/**
* Test for OptionsPropertyGroup::getProperties
- *
+ *
* @return void
*/
public function testGetNrOfProperties()
diff --git a/test/classes/properties/options/PMA_OptionsPropertyItem_test.php b/test/classes/properties/options/PMA_OptionsPropertyItem_test.php
index 52a2b19833c7..fd77bb185efa 100644
--- a/test/classes/properties/options/PMA_OptionsPropertyItem_test.php
+++ b/test/classes/properties/options/PMA_OptionsPropertyItem_test.php
@@ -10,7 +10,7 @@
/**
* Tests for OptionsPropertyItem class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_OptionsPropertyItem_Test extends PHPUnit_Framework_TestCase
@@ -29,7 +29,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -41,7 +41,7 @@ public function tearDown()
* Test for
* - OptionsPropertyItem::getName
* - OptionsPropertyItem::setName
- *
+ *
* @return void
*/
public function testGetSetName()
@@ -58,7 +58,7 @@ public function testGetSetName()
* Test for
* - OptionsPropertyItem::getText
* - OptionsPropertyItem::setText
- *
+ *
* @return void
*/
public function testGetSetText()
@@ -75,7 +75,7 @@ public function testGetSetText()
* Test for
* - OptionsPropertyItem::getForce
* - OptionsPropertyItem::setForce
- *
+ *
* @return void
*/
public function testGetSetForce()
@@ -90,7 +90,7 @@ public function testGetSetForce()
/**
* Test for OptionsPropertyItem::getPropertyType
- *
+ *
* @return void
*/
public function testGetPropertyType()
diff --git a/test/classes/properties/options/PMA_OptionsPropertyOneItem_test.php b/test/classes/properties/options/PMA_OptionsPropertyOneItem_test.php
index 63d7f0711238..142c20119709 100644
--- a/test/classes/properties/options/PMA_OptionsPropertyOneItem_test.php
+++ b/test/classes/properties/options/PMA_OptionsPropertyOneItem_test.php
@@ -10,7 +10,7 @@
/**
* Tests for OptionsPropertyOneItem class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_OptionsPropertyOneItem_Test extends PHPUnit_Framework_TestCase
@@ -29,7 +29,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -41,7 +41,7 @@ public function tearDown()
* Test for
* - OptionsPropertyOneItem::getValues
* - OptionsPropertyOneItem::setValues
- *
+ *
* @return void
*/
public function testGetSetValues()
@@ -58,7 +58,7 @@ public function testGetSetValues()
* Test for
* - OptionsPropertyOneItem::getLen
* - OptionsPropertyOneItem::setLen
- *
+ *
* @return void
*/
public function testGetSetLen()
@@ -75,7 +75,7 @@ public function testGetSetLen()
* Test for
* - OptionsPropertyOneItem::getForce
* - OptionsPropertyOneItem::setForce
- *
+ *
* @return void
*/
public function testGetSetForce()
@@ -92,7 +92,7 @@ public function testGetSetForce()
* Test for
* - OptionsPropertyOneItem::getDoc
* - OptionsPropertyOneItem::setDoc
- *
+ *
* @return void
*/
public function testGetSetDoc()
@@ -109,7 +109,7 @@ public function testGetSetDoc()
* Test for
* - OptionsPropertyOneItem::getSize
* - OptionsPropertyOneItem::setSize
- *
+ *
* @return void
*/
public function testGetSetSize()
diff --git a/test/classes/properties/options/groups/PMA_OptionsPropertyMainGroup_test.php b/test/classes/properties/options/groups/PMA_OptionsPropertyMainGroup_test.php
index 66569114fcd5..2d12f8e716c2 100644
--- a/test/classes/properties/options/groups/PMA_OptionsPropertyMainGroup_test.php
+++ b/test/classes/properties/options/groups/PMA_OptionsPropertyMainGroup_test.php
@@ -28,17 +28,17 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for OptionsPropertyMainGroup::getItemType
- *
+ *
* @return void
*/
public function testGetItemType()
diff --git a/test/classes/properties/options/groups/PMA_OptionsPropertyRootGroup_test.php b/test/classes/properties/options/groups/PMA_OptionsPropertyRootGroup_test.php
index fa76c6f3d5f6..e688ff4df862 100644
--- a/test/classes/properties/options/groups/PMA_OptionsPropertyRootGroup_test.php
+++ b/test/classes/properties/options/groups/PMA_OptionsPropertyRootGroup_test.php
@@ -28,17 +28,17 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for OptionsPropertyRootGroup::getItemType
- *
+ *
* @return void
*/
public function testGetItemType()
diff --git a/test/classes/properties/options/groups/PMA_OptionsPropertySubgroup_test.php b/test/classes/properties/options/groups/PMA_OptionsPropertySubgroup_test.php
index 7c0b74677bef..286671ced526 100644
--- a/test/classes/properties/options/groups/PMA_OptionsPropertySubgroup_test.php
+++ b/test/classes/properties/options/groups/PMA_OptionsPropertySubgroup_test.php
@@ -28,17 +28,17 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for OptionsPropertySubgroup::getItemType
- *
+ *
* @return void
*/
public function testGetItemType()
@@ -52,8 +52,8 @@ public function testGetItemType()
/**
* Test for
* - OptionsPropertySubgroup::getSubgroupHeader
- * - OptionsPropertySubgroup::setSubgroupHeader
- *
+ * - OptionsPropertySubgroup::setSubgroupHeader
+ *
* @return void
*/
public function testGetSetSubgroupHeader()
diff --git a/test/classes/properties/options/items/PMA_PropertyItems_test.php b/test/classes/properties/options/items/PMA_PropertyItems_test.php
index 9ecde7c3ce38..04b71e806cb7 100644
--- a/test/classes/properties/options/items/PMA_PropertyItems_test.php
+++ b/test/classes/properties/options/items/PMA_PropertyItems_test.php
@@ -22,7 +22,7 @@ class PMA_PropertyItems_Test extends PHPUnit_Framework_TestCase
{
/**
* Test for BoolPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testBoolGetItemType()
@@ -37,7 +37,7 @@ public function testBoolGetItemType()
/**
* Test for DocPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeDoc()
@@ -52,7 +52,7 @@ public function testGetItemTypeDoc()
/**
* Test for HiddenPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeHidden()
@@ -67,7 +67,7 @@ public function testGetItemTypeHidden()
/**
* Test for MessageOnlyPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeMessageOnly()
@@ -82,7 +82,7 @@ public function testGetItemTypeMessageOnly()
/**
* Test for RadioPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeRadio()
@@ -97,7 +97,7 @@ public function testGetItemTypeRadio()
/**
* Test for SelectPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeSelect()
@@ -112,7 +112,7 @@ public function testGetItemTypeSelect()
/**
* Test for TextPropertyItem::getItemType
- *
+ *
* @return void
*/
public function testGetItemTypeText()
diff --git a/test/classes/properties/plugins/PMA_ExportPluginProperties_test.php b/test/classes/properties/plugins/PMA_ExportPluginProperties_test.php
index 892f9ccd31fd..92ba0a2cd6ad 100644
--- a/test/classes/properties/plugins/PMA_ExportPluginProperties_test.php
+++ b/test/classes/properties/plugins/PMA_ExportPluginProperties_test.php
@@ -11,9 +11,9 @@
require_once 'test/classes/properties/plugins/PMA_ImportPluginProperties_test.php';
/**
- * Tests for ExportPluginProperties class. Extends PMA_ImportPluginProperties_Tests
+ * Tests for ExportPluginProperties class. Extends PMA_ImportPluginProperties_Tests
* and adds tests for methods that are not common to both
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_ExportPluginProperties_Test extends PMA_ImportPluginProperties_Test
@@ -32,7 +32,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -42,7 +42,7 @@ public function tearDown()
/**
* Test for ExportPluginProperties::getItemType
- *
+ *
* @return void
*/
public function testGetItemType()
@@ -57,7 +57,7 @@ public function testGetItemType()
* Test for
* - ExportPluginProperties::getForceFile
* - ExportPluginProperties::setForceFile
- *
+ *
* @return void
*/
public function testSetGetForceFile()
diff --git a/test/classes/properties/plugins/PMA_ImportPluginProperties_test.php b/test/classes/properties/plugins/PMA_ImportPluginProperties_test.php
index 2f957c85aa14..602f6b059971 100644
--- a/test/classes/properties/plugins/PMA_ImportPluginProperties_test.php
+++ b/test/classes/properties/plugins/PMA_ImportPluginProperties_test.php
@@ -29,17 +29,17 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
protected function tearDown()
{
unset($this->object);
}
-
+
/**
* Test for ImportPluginProperties::getItemType
- *
+ *
* @return void
*/
public function testGetItemType()
@@ -51,10 +51,10 @@ public function testGetItemType()
}
/**
- * Test for
+ * Test for
* - ImportPluginProperties::getOptionsText
* - ImportPluginProperties::setOptionsText
- *
+ *
* @return void
*/
public function testSetGetOptionsText()
@@ -68,10 +68,10 @@ public function testSetGetOptionsText()
}
/**
- * Test for
+ * Test for
* - ImportPluginProperties::setMimeType
* - ImportPluginProperties::getMimeType
- *
+ *
* @return void
*/
public function testSetGetMimeType()
diff --git a/test/classes/properties/plugins/PMA_PluginPorpertyItem_test.php b/test/classes/properties/plugins/PMA_PluginPorpertyItem_test.php
index 7b5f209f39b4..13195f28664f 100644
--- a/test/classes/properties/plugins/PMA_PluginPorpertyItem_test.php
+++ b/test/classes/properties/plugins/PMA_PluginPorpertyItem_test.php
@@ -10,7 +10,7 @@
/**
* Tests for PluginPropertyItem class
- *
+ *
* @package PhpMyAdmin-test
*/
class PMA_PluginPropertyItem_Test extends PHPUnit_Framework_TestCase
@@ -29,7 +29,7 @@ protected function setup()
/**
* tearDown for test cases
- *
+ *
* @return void
*/
public function tearDown()
@@ -39,7 +39,7 @@ public function tearDown()
/**
* Test for PluginPropertyItem::getPropertyType
- *
+ *
* @return void
*/
public function testGetPropertyType()
diff --git a/test/classes/schema/Dia_Relation_Schema_test.php b/test/classes/schema/Dia_Relation_Schema_test.php
index 43ad2fa37c63..6cb086d6056b 100644
--- a/test/classes/schema/Dia_Relation_Schema_test.php
+++ b/test/classes/schema/Dia_Relation_Schema_test.php
@@ -46,13 +46,13 @@ protected function setUp()
$_POST['orientation'] = 'orientation';
$_POST['paper'] = 'paper';
$_POST['export_type'] = 'PMA_ExportType';
-
+
$GLOBALS['server'] = 1;
$GLOBALS['controllink'] = null;
$GLOBALS['db'] = 'information_schema';
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['cfg']['Server']['table_coords'] = "table_name";
-
+
//_SESSION
$_SESSION['relation'][$GLOBALS['server']] = array(
'table_coords' => "table_name",
@@ -62,28 +62,28 @@ protected function setUp()
'relwork' => 'relwork',
'relation' => 'relation'
);
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$dbi->expects($this->any())
->method('numRows')
->will($this->returnValue(1));
-
+
$dbi->expects($this->any())
->method('query')
->will($this->returnValue("executed_1"));
-
+
$dbi->expects($this->any())
->method('tryQuery')
->will($this->returnValue("executed_1"));
-
+
$fetchArrayReturn = array(
//table name in information_schema_relations
'table_name' => 'CHARACTER_SETS'
);
-
+
$fetchArrayReturn2 = array(
//table name in information_schema_relations
'table_name' => 'COLLATIONS'
@@ -98,7 +98,7 @@ protected function setUp()
$dbi->expects($this->at(4))
->method('fetchAssoc')
->will($this->returnValue(false));
-
+
$getIndexesResult = array(
array(
'Table' => 'pma_tbl',
@@ -110,7 +110,7 @@ protected function setUp()
);
$dbi->expects($this->any())->method('getTableIndexes')
->will($this->returnValue($getIndexesResult));
-
+
$fetchValue = "CREATE TABLE `pma_bookmark` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
@@ -118,15 +118,15 @@ protected function setUp()
`label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`query` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
+ ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
. "COLLATE=utf8_bin COMMENT='Bookmarks'";
-
+
$dbi->expects($this->any())
->method('fetchValue')
- ->will($this->returnValue($fetchValue));
+ ->will($this->returnValue($fetchValue));
$GLOBALS['dbi'] = $dbi;
-
+
$this->object = new PMA_Dia_Relation_Schema();
}
@@ -154,27 +154,27 @@ public function testSetProperty()
$this->assertEquals(
33,
$this->object->pageNumber
- );
+ );
$this->assertEquals(
1,
$this->object->showGrid
- );
+ );
$this->assertEquals(
1,
$this->object->showColor
- );
+ );
$this->assertEquals(
1,
$this->object->showKeys
- );
+ );
$this->assertEquals(
'P',
$this->object->orientation
- );
+ );
$this->assertEquals(
'paper',
$this->object->paper
- );
+ );
$this->assertEquals(
'PMA_ExportType',
$this->object->exportType
diff --git a/test/classes/schema/Eps_Relation_Schema_test.php b/test/classes/schema/Eps_Relation_Schema_test.php
index ea7862798732..1fb2c2122020 100644
--- a/test/classes/schema/Eps_Relation_Schema_test.php
+++ b/test/classes/schema/Eps_Relation_Schema_test.php
@@ -52,7 +52,7 @@ protected function setUp()
$GLOBALS['db'] = 'information_schema';
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['cfg']['Server']['table_coords'] = "table_name";
-
+
//_SESSION
$_SESSION['relation'][$GLOBALS['server']] = array(
'table_coords' => "table_name",
@@ -62,28 +62,28 @@ protected function setUp()
'relwork' => 'relwork',
'relation' => 'relation'
);
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$dbi->expects($this->any())
->method('numRows')
->will($this->returnValue(1));
-
+
$dbi->expects($this->any())
->method('query')
->will($this->returnValue("executed_1"));
-
+
$dbi->expects($this->any())
->method('tryQuery')
->will($this->returnValue("executed_1"));
-
+
$fetchArrayReturn = array(
//table name in information_schema_relations
'table_name' => 'CHARACTER_SETS'
);
-
+
$fetchArrayReturn2 = array(
//table name in information_schema_relations
'table_name' => 'COLLATIONS'
@@ -98,7 +98,7 @@ protected function setUp()
$dbi->expects($this->at(4))
->method('fetchAssoc')
->will($this->returnValue(false));
-
+
$getIndexesResult = array(
array(
'Table' => 'pma_tbl',
@@ -110,7 +110,7 @@ protected function setUp()
);
$dbi->expects($this->any())->method('getTableIndexes')
->will($this->returnValue($getIndexesResult));
-
+
$fetchValue = "CREATE TABLE `pma_bookmark` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
@@ -118,16 +118,16 @@ protected function setUp()
`label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`query` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
+ ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
. "COLLATE=utf8_bin COMMENT='Bookmarks'";
-
+
$dbi->expects($this->any())
->method('fetchValue')
- ->will($this->returnValue($fetchValue));
+ ->will($this->returnValue($fetchValue));
$GLOBALS['dbi'] = $dbi;
-
- $this->object = new PMA_Eps_Relation_Schema();
+
+ $this->object = new PMA_Eps_Relation_Schema();
}
/**
@@ -150,23 +150,23 @@ protected function tearDown()
* @group medium
*/
public function testConstructor()
- {
+ {
$this->assertEquals(
33,
$this->object->pageNumber
- );
+ );
$this->assertEquals(
1,
$this->object->showColor
- );
+ );
$this->assertEquals(
1,
$this->object->showKeys
- );
+ );
$this->assertEquals(
1,
$this->object->tableDimension
- );
+ );
$this->assertEquals(
1,
$this->object->sameWide
@@ -174,7 +174,7 @@ public function testConstructor()
$this->assertEquals(
'L',
$this->object->orientation
- );
+ );
$this->assertEquals(
'PMA_ExportType',
$this->object->exportType
@@ -190,7 +190,7 @@ public function testConstructor()
*/
public function testSetPageNumbere()
{
- $this->object->setPageNumber(33);
+ $this->object->setPageNumber(33);
$this->assertEquals(
33,
$this->object->pageNumber
diff --git a/test/classes/schema/Pdf_Relation_Schema_test.php b/test/classes/schema/Pdf_Relation_Schema_test.php
index 46499c2bcb4e..3267587cfe7e 100644
--- a/test/classes/schema/Pdf_Relation_Schema_test.php
+++ b/test/classes/schema/Pdf_Relation_Schema_test.php
@@ -50,7 +50,7 @@ protected function setUp()
$_POST['paper'] = 'paper';
$_POST['export_type'] = 'PMA_ExportType';
$_POST['with_doc'] = 'on';
-
+
$GLOBALS['server'] = 1;
$GLOBALS['controllink'] = null;
$GLOBALS['db'] = 'information_schema';
@@ -62,7 +62,7 @@ protected function setUp()
$GLOBALS['cfg']['Server']['bookmarktable'] = "bookmarktable";
$GLOBALS['cfg']['Server']['relation'] = "relation";
$GLOBALS['cfg']['Server']['table_info'] = "table_info";
-
+
//_SESSION
$_SESSION['relation'][$GLOBALS['server']] = array(
'table_coords' => "table_name",
@@ -75,28 +75,28 @@ protected function setUp()
'commwork' => 'commwork',
'column_info' => 'column_info'
);
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$dbi->expects($this->any())
->method('numRows')
->will($this->returnValue(1));
-
+
$dbi->expects($this->any())
->method('query')
->will($this->returnValue("executed_1"));
-
+
$dbi->expects($this->any())
->method('tryQuery')
->will($this->returnValue("executed_1"));
-
+
$fetchArrayReturn = array(
//table name in information_schema_relations
'table_name' => 'CHARACTER_SETS'
);
-
+
$fetchArrayReturn2 = array(
//table name in information_schema_relations
'table_name' => 'COLLATIONS'
@@ -111,7 +111,7 @@ protected function setUp()
$dbi->expects($this->at(4))
->method('fetchAssoc')
->will($this->returnValue(false));
-
+
$fetchRowReturn = array(
'table_name'
);
@@ -122,7 +122,7 @@ protected function setUp()
->method('fetchRow')
->will($this->returnValue($fetchRowReturn));
}
-
+
$dbi->expects($this->at(10))
->method('fetchRow')
->will($this->returnValue($fetchRowReturn));
@@ -137,10 +137,10 @@ protected function setUp()
);
$dbi->expects($this->any())->method('getColumns')
->will($this->returnValue($fields_info));
-
+
$dbi->expects($this->any())->method('selectDb')
->will($this->returnValue(true));
-
+
$getIndexesResult = array(
array(
'Table' => 'pma_tbl',
@@ -152,7 +152,7 @@ protected function setUp()
);
$dbi->expects($this->any())->method('getTableIndexes')
->will($this->returnValue($getIndexesResult));
-
+
$fetchValue = "CREATE TABLE `pma_bookmark` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
@@ -160,25 +160,25 @@ protected function setUp()
`label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`query` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
+ ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
. "COLLATE=utf8_bin COMMENT='Bookmarks'";
-
+
$dbi->expects($this->any())
->method('fetchValue')
- ->will($this->returnValue($fetchValue));
+ ->will($this->returnValue($fetchValue));
$fetchResult = array(
'column1' => array('mimetype' => 'value1', 'transformation'=> 'pdf'),
'column2' => array('mimetype' => 'value2', 'transformation'=> 'xml'),
);
-
+
$dbi->expects($this->any())->method('fetchResult')
->will($this->returnValue($fetchResult));
-
+
$GLOBALS['dbi'] = $dbi;
-
- $this->object = new PMA_Pdf_Relation_Schema();
+
+ $this->object = new PMA_Pdf_Relation_Schema();
}
/**
@@ -201,31 +201,31 @@ protected function tearDown()
* @group medium
*/
public function testConstructor()
- {
+ {
$this->assertEquals(
33,
$this->object->pageNumber
- );
+ );
$this->assertEquals(
1,
$this->object->showGrid
- );
+ );
$this->assertEquals(
1,
$this->object->showColor
- );
+ );
$this->assertEquals(
1,
$this->object->showKeys
- );
+ );
$this->assertEquals(
1,
$this->object->tableDimension
- );
+ );
$this->assertEquals(
1,
$this->object->sameWide
- );
+ );
$this->assertEquals(
1,
$this->object->withDoc
@@ -233,14 +233,14 @@ public function testConstructor()
$this->assertEquals(
'L',
$this->object->orientation
- );
+ );
$this->assertEquals(
'PMA_ExportType',
$this->object->exportType
- );
+ );
$this->assertEquals(
'paper',
$this->object->paper
- );
+ );
}
}
diff --git a/test/classes/schema/Svg_Relation_Schema_test.php b/test/classes/schema/Svg_Relation_Schema_test.php
index 2640bafa8874..fe916c8ad038 100644
--- a/test/classes/schema/Svg_Relation_Schema_test.php
+++ b/test/classes/schema/Svg_Relation_Schema_test.php
@@ -53,7 +53,7 @@ protected function setUp()
$GLOBALS['db'] = 'information_schema';
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['cfg']['Server']['table_coords'] = "table_name";
-
+
//_SESSION
$_SESSION['relation'][$GLOBALS['server']] = array(
'table_coords' => "table_name",
@@ -63,28 +63,28 @@ protected function setUp()
'relwork' => 'relwork',
'relation' => 'relation'
);
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$dbi->expects($this->any())
->method('numRows')
->will($this->returnValue(1));
-
+
$dbi->expects($this->any())
->method('query')
->will($this->returnValue("executed_1"));
-
+
$dbi->expects($this->any())
->method('tryQuery')
->will($this->returnValue("executed_1"));
-
+
$fetchArrayReturn = array(
//table name in information_schema_relations
'table_name' => 'CHARACTER_SETS'
);
-
+
$fetchArrayReturn2 = array(
//table name in information_schema_relations
'table_name' => 'COLLATIONS'
@@ -99,7 +99,7 @@ protected function setUp()
$dbi->expects($this->at(4))
->method('fetchAssoc')
->will($this->returnValue(false));
-
+
$getIndexesResult = array(
array(
'Table' => 'pma_tbl',
@@ -111,7 +111,7 @@ protected function setUp()
);
$dbi->expects($this->any())->method('getTableIndexes')
->will($this->returnValue($getIndexesResult));
-
+
$fetchValue = "CREATE TABLE `pma_bookmark` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
@@ -119,16 +119,16 @@ protected function setUp()
`label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`query` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
+ ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 "
. "COLLATE=utf8_bin COMMENT='Bookmarks'";
-
+
$dbi->expects($this->any())
->method('fetchValue')
- ->will($this->returnValue($fetchValue));
+ ->will($this->returnValue($fetchValue));
$GLOBALS['dbi'] = $dbi;
-
- $this->object = new PMA_Svg_Relation_Schema();
+
+ $this->object = new PMA_Svg_Relation_Schema();
}
/**
@@ -151,23 +151,23 @@ protected function tearDown()
* @group medium
*/
public function testConstructor()
- {
+ {
$this->assertEquals(
33,
$this->object->pageNumber
- );
+ );
$this->assertEquals(
1,
$this->object->showColor
- );
+ );
$this->assertEquals(
1,
$this->object->showKeys
- );
+ );
$this->assertEquals(
1,
$this->object->tableDimension
- );
+ );
$this->assertEquals(
1,
$this->object->sameWide
@@ -175,6 +175,6 @@ public function testConstructor()
$this->assertEquals(
'PMA_ExportType',
$this->object->exportType
- );
+ );
}
}
diff --git a/test/classes/schema/Svg_test.php b/test/classes/schema/Svg_test.php
index c752a4a99ec6..5f4014130e06 100644
--- a/test/classes/schema/Svg_test.php
+++ b/test/classes/schema/Svg_test.php
@@ -31,7 +31,7 @@ class PMA_Svg_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
- $this->object = new PMA_SVG();
+ $this->object = new PMA_SVG();
}
/**
@@ -76,7 +76,7 @@ function testGetStringWidth()
12,
$this->object->getStringWidth("aa", "arial", "10")
);
-
+
// string "i"
$this->assertEquals(
3,
diff --git a/test/classes/schema/User_Schema_test.php b/test/classes/schema/User_Schema_test.php
index 2c23bbb3dbf6..df1396729382 100644
--- a/test/classes/schema/User_Schema_test.php
+++ b/test/classes/schema/User_Schema_test.php
@@ -55,14 +55,14 @@ protected function setUp()
$GLOBALS['cfgRelation']['table_coords'] = "table_name";
$GLOBALS['cfgRelation']['pdf_pages'] = "pdf_pages";
$GLOBALS['cfgRelation']['relation'] = "relation";
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$dbi->expects($this->any())
->method('insertId')
- ->will($this->returnValue(10));
+ ->will($this->returnValue(10));
$databases = array();
$database_name = 'PMA';
@@ -73,13 +73,13 @@ protected function setUp()
$databases[$database_name]['SCHEMA_INDEX_LENGTH'] = 10;
$databases[$database_name]['SCHEMA_LENGTH'] = 10;
$databases[$database_name]['ENGINE'] = "InnerDB";
-
+
$dbi->expects($this->any())->method('getTablesFull')
- ->will($this->returnValue($databases));
+ ->will($this->returnValue($databases));
$GLOBALS['dbi'] = $dbi;
-
- $this->object = new PMA_User_Schema();
+
+ $this->object = new PMA_User_Schema();
}
/**
@@ -106,48 +106,48 @@ public function testSetActionAndProcessUserChoice()
//action: selectpage
$_REQUEST['chpage'] = 10;
$_REQUEST['action_choose'] = '2';
- $this->object->setAction("selectpage");
- $this->object->processUserChoice();
+ $this->object->setAction("selectpage");
+ $this->object->processUserChoice();
$this->assertEquals(
"selectpage",
$this->object->action
- );
+ );
$this->assertEquals(
10,
$this->object->chosenPage
);
-
+
$_REQUEST['action_choose'] = '1';
- $this->object->processUserChoice();
+ $this->object->processUserChoice();
//deleteCoordinates successfully
$this->assertEquals(
0,
$this->object->chosenPage
);
-
+
//action: createpage
$_POST['newpage'] = "3";
$_POST['auto_layout_foreign'] = true;
$_POST['auto_layout_internal'] = true;
$_POST['delrow'] = array("row1", "row2");
$_POST['chpage'] = "chpage";
- $this->object->setAction("delete_old_references");
- $this->object->processUserChoice();
- $this->object->setAction("createpage");
- $this->object->processUserChoice();
+ $this->object->setAction("delete_old_references");
+ $this->object->processUserChoice();
+ $this->object->setAction("createpage");
+ $this->object->processUserChoice();
$this->assertEquals(
10,
$this->object->pageNumber
- );
+ );
$this->assertEquals(
"1",
$this->object->autoLayoutForeign
- );
+ );
$this->assertEquals(
"1",
$this->object->autoLayoutInternal
);
-
+
//action: edcoord
$_POST['chpage'] = "3";
$_POST['c_table_rows'] = 1;
@@ -158,15 +158,15 @@ public function testSetActionAndProcessUserChoice()
'delete' => 'delete0',
'x' => 'x0',
);
- $this->object->setAction("edcoord");
- $this->object->processUserChoice();
+ $this->object->setAction("edcoord");
+ $this->object->processUserChoice();
$this->assertEquals(
'3',
$this->object->chosenPage
- );
+ );
$this->assertEquals(
1,
$this->object->c_table_rows
- );
+ );
}
}