diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-16 07:01:44 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-16 10:36:04 +0300 |
commit | dc8c92bfd8433a92bdec5389fa54552ae6039e75 (patch) | |
tree | 249b15e6215bd5160ddfeb87b6019febd4ebab74 /test | |
parent | af148ad92bba790ae9180f2b730d89a06c986c8d (diff) |
Enable strict mode in test files
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test')
221 files changed, 463 insertions, 63 deletions
diff --git a/test/Environment_test.php b/test/Environment_test.php index 662d773b4b..f36b0f9813 100644 --- a/test/Environment_test.php +++ b/test/Environment_test.php @@ -5,6 +5,7 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); /** * diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php index cbe3289c3e..b22ddaf5eb 100644 --- a/test/bootstrap-dist.php +++ b/test/bootstrap-dist.php @@ -5,13 +5,14 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); /** * Set precision to sane value, with higher values * things behave slightly unexpectedly, for example * round(1.2, 2) returns 1.199999999999999956. */ -ini_set('precision', 14); +ini_set('precision', '14'); // Let PHP complain about all errors error_reporting(E_ALL); @@ -21,7 +22,7 @@ date_default_timezone_set('UTC'); // Adding phpMyAdmin sources to include path set_include_path( - get_include_path() . PATH_SEPARATOR . dirname(realpath("../index.php")) + get_include_path() . PATH_SEPARATOR . dirname((string) realpath("../index.php")) ); // Setting constants for testing diff --git a/test/classes/AdvisorTest.php b/test/classes/AdvisorTest.php index 219428dc4b..3ef931d840 100644 --- a/test/classes/AdvisorTest.php +++ b/test/classes/AdvisorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Advisor; diff --git a/test/classes/BookmarkTest.php b/test/classes/BookmarkTest.php index f2fe9b9ac9..ac4a11ff8f 100644 --- a/test/classes/BookmarkTest.php +++ b/test/classes/BookmarkTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Bookmark; diff --git a/test/classes/BrowseForeignersTest.php b/test/classes/BrowseForeignersTest.php index 9dcb7eee5e..231546b5bc 100644 --- a/test/classes/BrowseForeignersTest.php +++ b/test/classes/BrowseForeignersTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\BrowseForeigners; diff --git a/test/classes/CentralColumnsTest.php b/test/classes/CentralColumnsTest.php index 196fe12a2f..eeb0286600 100644 --- a/test/classes/CentralColumnsTest.php +++ b/test/classes/CentralColumnsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\CentralColumns; diff --git a/test/classes/CharsetsTest.php b/test/classes/CharsetsTest.php index 626a99a276..823e4e4353 100644 --- a/test/classes/CharsetsTest.php +++ b/test/classes/CharsetsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Charsets; diff --git a/test/classes/CheckUserPrivilegesTest.php b/test/classes/CheckUserPrivilegesTest.php index 981b090fee..4638a040d6 100644 --- a/test/classes/CheckUserPrivilegesTest.php +++ b/test/classes/CheckUserPrivilegesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\CheckUserPrivileges; diff --git a/test/classes/Config/ConfigFileTest.php b/test/classes/Config/ConfigFileTest.php index da6d84e142..52cfd8de05 100644 --- a/test/classes/Config/ConfigFileTest.php +++ b/test/classes/Config/ConfigFileTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config\ConfigFile; diff --git a/test/classes/Config/DescriptionTest.php b/test/classes/Config/DescriptionTest.php index 8745161eb3..e25205f394 100644 --- a/test/classes/Config/DescriptionTest.php +++ b/test/classes/Config/DescriptionTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/Config/FormDisplayTemplateTest.php b/test/classes/Config/FormDisplayTemplateTest.php index 74e61fbeca..7b10969792 100644 --- a/test/classes/Config/FormDisplayTemplateTest.php +++ b/test/classes/Config/FormDisplayTemplateTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/Config/FormDisplayTest.php b/test/classes/Config/FormDisplayTest.php index 80baff36e6..37e5cb03a8 100644 --- a/test/classes/Config/FormDisplayTest.php +++ b/test/classes/Config/FormDisplayTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/Config/FormTest.php b/test/classes/Config/FormTest.php index e1e6353294..89760a9874 100644 --- a/test/classes/Config/FormTest.php +++ b/test/classes/Config/FormTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/Config/Forms/FormListTest.php b/test/classes/Config/Forms/FormListTest.php index f2f39194ce..855a2ed44d 100644 --- a/test/classes/Config/Forms/FormListTest.php +++ b/test/classes/Config/Forms/FormListTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config\Forms; use PhpMyAdmin\Config; diff --git a/test/classes/Config/PageSettingsTest.php b/test/classes/Config/PageSettingsTest.php index 677336d323..da847f16c7 100644 --- a/test/classes/Config/PageSettingsTest.php +++ b/test/classes/Config/PageSettingsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/Config/ServerConfigChecksTest.php b/test/classes/Config/ServerConfigChecksTest.php index e84c9fe343..f32d3a39af 100644 --- a/test/classes/Config/ServerConfigChecksTest.php +++ b/test/classes/Config/ServerConfigChecksTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Config; use PhpMyAdmin\Config; diff --git a/test/classes/ConfigTest.php b/test/classes/ConfigTest.php index 63d16d5c96..681ed5f65a 100644 --- a/test/classes/ConfigTest.php +++ b/test/classes/ConfigTest.php @@ -6,6 +6,8 @@ * @package PhpMyAdmin-test * @group current */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/Controllers/Database/DatabaseStructureControllerTest.php b/test/classes/Controllers/Database/DatabaseStructureControllerTest.php index 7168e71550..41a6b17177 100644 --- a/test/classes/Controllers/Database/DatabaseStructureControllerTest.php +++ b/test/classes/Controllers/Database/DatabaseStructureControllerTest.php @@ -7,6 +7,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Database; use PhpMyAdmin\Controllers\Database\DatabaseStructureController; diff --git a/test/classes/Controllers/Server/ServerBinlogControllerTest.php b/test/classes/Controllers/Server/ServerBinlogControllerTest.php index 4593ddf82a..e0aa025a8c 100644 --- a/test/classes/Controllers/Server/ServerBinlogControllerTest.php +++ b/test/classes/Controllers/Server/ServerBinlogControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Controllers\Server\ServerBinlogController; diff --git a/test/classes/Controllers/Server/ServerCollationsControllerTest.php b/test/classes/Controllers/Server/ServerCollationsControllerTest.php index 6550543158..8621c8b370 100644 --- a/test/classes/Controllers/Server/ServerCollationsControllerTest.php +++ b/test/classes/Controllers/Server/ServerCollationsControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Controllers\Server\ServerCollationsController; diff --git a/test/classes/Controllers/Server/ServerDatabasesControllerTest.php b/test/classes/Controllers/Server/ServerDatabasesControllerTest.php index 8ff219ba60..18bd6fb25b 100644 --- a/test/classes/Controllers/Server/ServerDatabasesControllerTest.php +++ b/test/classes/Controllers/Server/ServerDatabasesControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Charsets; diff --git a/test/classes/Controllers/Server/ServerEnginesControllerTest.php b/test/classes/Controllers/Server/ServerEnginesControllerTest.php index 80c27177a7..fd0e48a0da 100644 --- a/test/classes/Controllers/Server/ServerEnginesControllerTest.php +++ b/test/classes/Controllers/Server/ServerEnginesControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Controllers\Server\ServerEnginesController; diff --git a/test/classes/Controllers/Server/ServerPluginsControllerTest.php b/test/classes/Controllers/Server/ServerPluginsControllerTest.php index 1592b98e6a..8c4869ad85 100644 --- a/test/classes/Controllers/Server/ServerPluginsControllerTest.php +++ b/test/classes/Controllers/Server/ServerPluginsControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Controllers\Server\ServerPluginsController; diff --git a/test/classes/Controllers/Server/ServerVariablesControllerTest.php b/test/classes/Controllers/Server/ServerVariablesControllerTest.php index 776b2a81f4..9c280a22ba 100644 --- a/test/classes/Controllers/Server/ServerVariablesControllerTest.php +++ b/test/classes/Controllers/Server/ServerVariablesControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Server; use PhpMyAdmin\Core; diff --git a/test/classes/Controllers/Table/TableIndexesControllerTest.php b/test/classes/Controllers/Table/TableIndexesControllerTest.php index 5a22baf45a..e098710c75 100644 --- a/test/classes/Controllers/Table/TableIndexesControllerTest.php +++ b/test/classes/Controllers/Table/TableIndexesControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Table; use PhpMyAdmin\Controllers\Table\TableIndexesController; diff --git a/test/classes/Controllers/Table/TableRelationControllerTest.php b/test/classes/Controllers/Table/TableRelationControllerTest.php index bea6c91deb..368690ba1c 100644 --- a/test/classes/Controllers/Table/TableRelationControllerTest.php +++ b/test/classes/Controllers/Table/TableRelationControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Table; use PhpMyAdmin\Di\Container; diff --git a/test/classes/Controllers/Table/TableSearchControllerTest.php b/test/classes/Controllers/Table/TableSearchControllerTest.php index d52c896976..f9db5ee44e 100644 --- a/test/classes/Controllers/Table/TableSearchControllerTest.php +++ b/test/classes/Controllers/Table/TableSearchControllerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Table; use PhpMyAdmin\Controllers\Table\TableSearchController; diff --git a/test/classes/Controllers/Table/TableStructureControllerTest.php b/test/classes/Controllers/Table/TableStructureControllerTest.php index db9cf52faf..658d6363c4 100644 --- a/test/classes/Controllers/Table/TableStructureControllerTest.php +++ b/test/classes/Controllers/Table/TableStructureControllerTest.php @@ -7,6 +7,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Controllers\Table; use PhpMyAdmin\Di\Container; diff --git a/test/classes/CoreTest.php b/test/classes/CoreTest.php index 7f38a8cb8c..5826cfb5d8 100644 --- a/test/classes/CoreTest.php +++ b/test/classes/CoreTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/CreateAddFieldTest.php b/test/classes/CreateAddFieldTest.php index a2916debd2..bcb7c718ab 100644 --- a/test/classes/CreateAddFieldTest.php +++ b/test/classes/CreateAddFieldTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\CreateAddField; diff --git a/test/classes/Database/Designer/CommonTest.php b/test/classes/Database/Designer/CommonTest.php index abbcaa5f05..75c919ea23 100644 --- a/test/classes/Database/Designer/CommonTest.php +++ b/test/classes/Database/Designer/CommonTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Database\Designer; use PhpMyAdmin\Database\Designer\Common; diff --git a/test/classes/Database/DesignerTest.php b/test/classes/Database/DesignerTest.php index 51d705740a..a2476faf6e 100644 --- a/test/classes/Database/DesignerTest.php +++ b/test/classes/Database/DesignerTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Database; use PhpMyAdmin\Database\Designer; diff --git a/test/classes/Database/QbeTest.php b/test/classes/Database/QbeTest.php index 7cde83b448..b99dbcd5b5 100644 --- a/test/classes/Database/QbeTest.php +++ b/test/classes/Database/QbeTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Database; use PhpMyAdmin\Database\Qbe; diff --git a/test/classes/Database/SearchTest.php b/test/classes/Database/SearchTest.php index 93dfd3c5a0..202399d82f 100644 --- a/test/classes/Database/SearchTest.php +++ b/test/classes/Database/SearchTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Database; use PhpMyAdmin\Database\Search; diff --git a/test/classes/DatabaseInterfaceTest.php b/test/classes/DatabaseInterfaceTest.php index d0648a2c4e..cf5615dcb3 100644 --- a/test/classes/DatabaseInterfaceTest.php +++ b/test/classes/DatabaseInterfaceTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Dbi/DbiMysqliTest.php b/test/classes/Dbi/DbiMysqliTest.php index 10c85ea93a..1a0ad5c769 100644 --- a/test/classes/Dbi/DbiMysqliTest.php +++ b/test/classes/Dbi/DbiMysqliTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Dbi; use PhpMyAdmin\Dbi\DbiMysqli; diff --git a/test/classes/Di/ContainerExceptionTest.php b/test/classes/Di/ContainerExceptionTest.php index 5700869ea3..2245d6648f 100644 --- a/test/classes/Di/ContainerExceptionTest.php +++ b/test/classes/Di/ContainerExceptionTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Di; use PhpMyAdmin\Di\ContainerException; diff --git a/test/classes/Di/ContainerTest.php b/test/classes/Di/ContainerTest.php index 4500ffc3bf..96f8ad2307 100644 --- a/test/classes/Di/ContainerTest.php +++ b/test/classes/Di/ContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Di; use PhpMyAdmin\Di\Container; diff --git a/test/classes/Di/NotFoundExceptionTest.php b/test/classes/Di/NotFoundExceptionTest.php index 4849d6c8f9..21fd9b0337 100644 --- a/test/classes/Di/NotFoundExceptionTest.php +++ b/test/classes/Di/NotFoundExceptionTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Di; use PhpMyAdmin\Di\NotFoundException; diff --git a/test/classes/Display/ChangePasswordTest.php b/test/classes/Display/ChangePasswordTest.php index a39c3877f8..51b3c4c282 100644 --- a/test/classes/Display/ChangePasswordTest.php +++ b/test/classes/Display/ChangePasswordTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Display; use PhpMyAdmin\Config; diff --git a/test/classes/Display/CreateTableTest.php b/test/classes/Display/CreateTableTest.php index 3646f5915d..ba054c56c0 100644 --- a/test/classes/Display/CreateTableTest.php +++ b/test/classes/Display/CreateTableTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Display; use PhpMyAdmin\Display\CreateTable; diff --git a/test/classes/Display/ExportTest.php b/test/classes/Display/ExportTest.php index 6021518503..817b461680 100644 --- a/test/classes/Display/ExportTest.php +++ b/test/classes/Display/ExportTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Display; use PhpMyAdmin\Core; diff --git a/test/classes/Display/ResultsTest.php b/test/classes/Display/ResultsTest.php index 1326168f2e..ce490fabf8 100644 --- a/test/classes/Display/ResultsTest.php +++ b/test/classes/Display/ResultsTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Display; use PhpMyAdmin\Config; diff --git a/test/classes/EncodingTest.php b/test/classes/EncodingTest.php index 991b1168ee..418b69d4aa 100644 --- a/test/classes/EncodingTest.php +++ b/test/classes/EncodingTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Encoding; diff --git a/test/classes/Engines/BdbTest.php b/test/classes/Engines/BdbTest.php index 723242e7bb..f3e19bfb24 100644 --- a/test/classes/Engines/BdbTest.php +++ b/test/classes/Engines/BdbTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Bdb; diff --git a/test/classes/Engines/BinlogTest.php b/test/classes/Engines/BinlogTest.php index 714d464006..9d8caa436f 100644 --- a/test/classes/Engines/BinlogTest.php +++ b/test/classes/Engines/BinlogTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Binlog; diff --git a/test/classes/Engines/InnodbTest.php b/test/classes/Engines/InnodbTest.php index a14d7b1391..5eb9ad5399 100644 --- a/test/classes/Engines/InnodbTest.php +++ b/test/classes/Engines/InnodbTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Innodb; diff --git a/test/classes/Engines/MemoryTest.php b/test/classes/Engines/MemoryTest.php index e8eb3a2292..f87dee0fea 100644 --- a/test/classes/Engines/MemoryTest.php +++ b/test/classes/Engines/MemoryTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Memory; diff --git a/test/classes/Engines/MrgMyisamTest.php b/test/classes/Engines/MrgMyisamTest.php index 16453be860..88ce5b6e91 100644 --- a/test/classes/Engines/MrgMyisamTest.php +++ b/test/classes/Engines/MrgMyisamTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\MrgMyisam; diff --git a/test/classes/Engines/MyisamTest.php b/test/classes/Engines/MyisamTest.php index 11a00ad2ac..06a6105b5e 100644 --- a/test/classes/Engines/MyisamTest.php +++ b/test/classes/Engines/MyisamTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Myisam; diff --git a/test/classes/Engines/NdbclusterTest.php b/test/classes/Engines/NdbclusterTest.php index 178c6e952e..22ea71f805 100644 --- a/test/classes/Engines/NdbclusterTest.php +++ b/test/classes/Engines/NdbclusterTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Engines\Ndbcluster; diff --git a/test/classes/Engines/PbxtTest.php b/test/classes/Engines/PbxtTest.php index 9f29123c6c..8532266103 100644 --- a/test/classes/Engines/PbxtTest.php +++ b/test/classes/Engines/PbxtTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Engines; use PhpMyAdmin\Core; diff --git a/test/classes/ErrorHandlerTest.php b/test/classes/ErrorHandlerTest.php index 56cdc579ae..e369113002 100644 --- a/test/classes/ErrorHandlerTest.php +++ b/test/classes/ErrorHandlerTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\ErrorHandler; diff --git a/test/classes/ErrorTest.php b/test/classes/ErrorTest.php index ee588eed12..cefb8fbea1 100644 --- a/test/classes/ErrorTest.php +++ b/test/classes/ErrorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Error; @@ -32,7 +34,7 @@ class ErrorTest extends PmaTestCase */ protected function setUp() { - $this->object = new Error('2', 'Compile Error', 'error.txt', 15); + $this->object = new Error(2, 'Compile Error', 'error.txt', 15); } /** diff --git a/test/classes/ExportTest.php b/test/classes/ExportTest.php index 0f27626bc6..4e9131229f 100644 --- a/test/classes/ExportTest.php +++ b/test/classes/ExportTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Export; diff --git a/test/classes/FileTest.php b/test/classes/FileTest.php index 8aa92154c7..bd57e0b2d6 100644 --- a/test/classes/FileTest.php +++ b/test/classes/FileTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\File; diff --git a/test/classes/FontTest.php b/test/classes/FontTest.php index fb33a4b79e..13d27971ed 100644 --- a/test/classes/FontTest.php +++ b/test/classes/FontTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Font; @@ -39,115 +41,115 @@ class FontTest extends PmaTestCase // empty string $this->assertEquals( 0, - $this->font->getStringWidth("", "arial", "10") + $this->font->getStringWidth("", "arial", 10) ); // empty string $this->assertEquals( 3, - $this->font->getStringWidth(" ", "arial", "10") + $this->font->getStringWidth(" ", "arial", 10) ); // string "a" $this->assertEquals( 6, - $this->font->getStringWidth("a", "arial", "10") + $this->font->getStringWidth("a", "arial", 10) ); // string "aa" $this->assertEquals( 12, - $this->font->getStringWidth("aa", "arial", "10") + $this->font->getStringWidth("aa", "arial", 10) ); // string "i" $this->assertEquals( 3, - $this->font->getStringWidth("i", "arial", "10") + $this->font->getStringWidth("i", "arial", 10) ); // string "f" $this->assertEquals( 3, - $this->font->getStringWidth("f", "arial", "10") + $this->font->getStringWidth("f", "arial", 10) ); // string "t" $this->assertEquals( 3, - $this->font->getStringWidth("t", "arial", "10") + $this->font->getStringWidth("t", "arial", 10) ); // string "if" $this->assertEquals( 5, - $this->font->getStringWidth("if", "arial", "10") + $this->font->getStringWidth("if", "arial", 10) ); // string "it" $this->assertEquals( 6, - $this->font->getStringWidth("it", "arial", "10") + $this->font->getStringWidth("it", "arial", 10) ); // string "r" $this->assertEquals( 4, - $this->font->getStringWidth("r", "arial", "10") + $this->font->getStringWidth("r", "arial", 10) ); // string "1" $this->assertEquals( 5, - $this->font->getStringWidth("1", "arial", "10") + $this->font->getStringWidth("1", "arial", 10) ); // string "c" $this->assertEquals( 5, - $this->font->getStringWidth("c", "arial", "10") + $this->font->getStringWidth("c", "arial", 10) ); // string "F" $this->assertEquals( 7, - $this->font->getStringWidth("F", "arial", "10") + $this->font->getStringWidth("F", "arial", 10) ); // string "A" $this->assertEquals( 7, - $this->font->getStringWidth("A", "arial", "10") + $this->font->getStringWidth("A", "arial", 10) ); // string "w" $this->assertEquals( 8, - $this->font->getStringWidth("w", "arial", "10") + $this->font->getStringWidth("w", "arial", 10) ); // string "G" $this->assertEquals( 8, - $this->font->getStringWidth("G", "arial", "10") + $this->font->getStringWidth("G", "arial", 10) ); // string "m" $this->assertEquals( 9, - $this->font->getStringWidth("m", "arial", "10") + $this->font->getStringWidth("m", "arial", 10) ); // string "W" $this->assertEquals( 10, - $this->font->getStringWidth("W", "arial", "10") + $this->font->getStringWidth("W", "arial", 10) ); // string "$" $this->assertEquals( 3, - $this->font->getStringWidth("$", "arial", "10") + $this->font->getStringWidth("$", "arial", 10) ); } @@ -161,25 +163,25 @@ class FontTest extends PmaTestCase // string "phpMyAdmin", with Arial 10 $this->assertEquals( 59, - $this->font->getStringWidth("phpMyAdmin", "arial", "10") + $this->font->getStringWidth("phpMyAdmin", "arial", 10) ); // string "phpMyAdmin", with No font $this->assertEquals( 59, - $this->font->getStringWidth("phpMyAdmin", "", "10") + $this->font->getStringWidth("phpMyAdmin", "", 10) ); // string "phpMyAdmin", with Times 10 $this->assertEquals( 55, - $this->font->getStringWidth("phpMyAdmin", "times", "10") + $this->font->getStringWidth("phpMyAdmin", "times", 10) ); // string "phpMyAdmin", with Broadway 10 $this->assertEquals( 73, - $this->font->getStringWidth("phpMyAdmin", "broadway", "10") + $this->font->getStringWidth("phpMyAdmin", "broadway", 10) ); } @@ -194,25 +196,25 @@ class FontTest extends PmaTestCase // string "phpMyAdmin", with font size 0 $this->assertEquals( 0, - $this->font->getStringWidth("phpMyAdmin", "arial", "0") + $this->font->getStringWidth("phpMyAdmin", "arial", 0) ); // string "phpMyAdmin", with Arial 10 $this->assertEquals( 59, - $this->font->getStringWidth("phpMyAdmin", "arial", "10") + $this->font->getStringWidth("phpMyAdmin", "arial", 10) ); // string "phpMyAdmin", with Arial 11 $this->assertEquals( 65, - $this->font->getStringWidth("phpMyAdmin", "arial", "11") + $this->font->getStringWidth("phpMyAdmin", "arial", 11) ); // string "phpMyAdmin", with Arial 20 $this->assertEquals( 118, - $this->font->getStringWidth("phpMyAdmin", "arial", "20") + $this->font->getStringWidth("phpMyAdmin", "arial", 20) ); } @@ -226,7 +228,7 @@ class FontTest extends PmaTestCase // string "a", with invalid charlist (= array without proper structure) $this->assertEquals( 6, - $this->font->getStringWidth("a", "arial", "10", array("list")) + $this->font->getStringWidth("a", "arial", 10, array("list")) ); // string "a", with invalid charlist (= array without proper structure : @@ -234,7 +236,7 @@ class FontTest extends PmaTestCase $this->assertEquals( 6, $this->font->getStringWidth( - "a", "arial", "10", + "a", "arial", 10, array(array("chars" => "a")) ) ); @@ -244,7 +246,7 @@ class FontTest extends PmaTestCase $this->assertEquals( 6, $this->font->getStringWidth( - "a", "arial", "10", + "a", "arial", 10, array(array("modifier" => 0.61)) ) ); @@ -254,7 +256,7 @@ class FontTest extends PmaTestCase $this->assertEquals( 6, $this->font->getStringWidth( - "a", "arial", "10", + "a", "arial", 10, array(array("chars" => "a", "modifier" => 0.61)) ) ); @@ -263,7 +265,7 @@ class FontTest extends PmaTestCase $this->assertEquals( 7, $this->font->getStringWidth( - "a", "arial", "10", + "a", "arial", 10, array(array("chars" => array("a"), "modifier" => 0.61)) ) ); diff --git a/test/classes/FooterTest.php b/test/classes/FooterTest.php index 76704d9e36..2e4f0ad51a 100644 --- a/test/classes/FooterTest.php +++ b/test/classes/FooterTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/Gis/GisFactoryTest.php b/test/classes/Gis/GisFactoryTest.php index 4899b32a97..9d6bf7bf6e 100644 --- a/test/classes/Gis/GisFactoryTest.php +++ b/test/classes/Gis/GisFactoryTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisFactory; diff --git a/test/classes/Gis/GisGeomTestCase.php b/test/classes/Gis/GisGeomTestCase.php index 2addb4e1f3..df7c307d2e 100644 --- a/test/classes/Gis/GisGeomTestCase.php +++ b/test/classes/Gis/GisGeomTestCase.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Gis/GisGeometryCollectionTest.php b/test/classes/Gis/GisGeometryCollectionTest.php index f150d5f54a..824cc9f750 100644 --- a/test/classes/Gis/GisGeometryCollectionTest.php +++ b/test/classes/Gis/GisGeometryCollectionTest.php @@ -1,11 +1,12 @@ <?php - /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Test for PhpMyAdmin\Gis\GisGeometry * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisGeometryCollection; @@ -19,7 +20,6 @@ use TCPDF; */ class GisGeometryCollectionTest extends TestCase { - /** * @access protected */ @@ -225,7 +225,7 @@ class GisGeometryCollectionTest extends TestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150') + imagecreatetruecolor(120, 150) ) ); } diff --git a/test/classes/Gis/GisGeometryTest.php b/test/classes/Gis/GisGeometryTest.php index 969090caa3..11e487646a 100644 --- a/test/classes/Gis/GisGeometryTest.php +++ b/test/classes/Gis/GisGeometryTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Gis/GisLineStringTest.php b/test/classes/Gis/GisLineStringTest.php index d438248d4e..a97a2ccc5a 100644 --- a/test/classes/Gis/GisLineStringTest.php +++ b/test/classes/Gis/GisLineStringTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisLineString; @@ -206,7 +208,7 @@ class GisLineStringTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150') + imagecreatetruecolor(120, 150) ) ); } diff --git a/test/classes/Gis/GisMultiLineStringTest.php b/test/classes/Gis/GisMultiLineStringTest.php index 9120b6bc0e..ce63dea1a6 100644 --- a/test/classes/Gis/GisMultiLineStringTest.php +++ b/test/classes/Gis/GisMultiLineStringTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiLineString; @@ -267,7 +269,7 @@ class GisMultiLineStringTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150') + imagecreatetruecolor(120, 150) ) ); } diff --git a/test/classes/Gis/GisMultiPointTest.php b/test/classes/Gis/GisMultiPointTest.php index 6fd86ebab8..582107b99a 100644 --- a/test/classes/Gis/GisMultiPointTest.php +++ b/test/classes/Gis/GisMultiPointTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiPoint; @@ -210,7 +212,7 @@ class GisMultiPointTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150'), + imagecreatetruecolor(120, 150), ) ); } diff --git a/test/classes/Gis/GisMultiPolygonTest.php b/test/classes/Gis/GisMultiPolygonTest.php index cf50ad8581..9de3defe33 100644 --- a/test/classes/Gis/GisMultiPolygonTest.php +++ b/test/classes/Gis/GisMultiPolygonTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiPolygon; @@ -311,7 +313,7 @@ class GisMultiPolygonTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150'), + imagecreatetruecolor(120, 150), ) ); diff --git a/test/classes/Gis/GisPointTest.php b/test/classes/Gis/GisPointTest.php index c2f71cb8ad..17155aac39 100644 --- a/test/classes/Gis/GisPointTest.php +++ b/test/classes/Gis/GisPointTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisPoint; @@ -211,7 +213,7 @@ class GisPointTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150') + imagecreatetruecolor(120, 150) ) ); } diff --git a/test/classes/Gis/GisPolygonTest.php b/test/classes/Gis/GisPolygonTest.php index 5dc0921f0c..4645f75bd1 100644 --- a/test/classes/Gis/GisPolygonTest.php +++ b/test/classes/Gis/GisPolygonTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisPolygon; @@ -398,7 +400,7 @@ class GisPolygonTest extends GisGeomTestCase 'scale' => 2, 'height' => 150 ), - imagecreatetruecolor('120', '150') + imagecreatetruecolor(120, 150) ) ); } diff --git a/test/classes/HeaderTest.php b/test/classes/HeaderTest.php index 98f8e97299..229e48ed83 100644 --- a/test/classes/HeaderTest.php +++ b/test/classes/HeaderTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/ImportTest.php b/test/classes/ImportTest.php index d006a6d001..10d3090e89 100644 --- a/test/classes/ImportTest.php +++ b/test/classes/ImportTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Import; diff --git a/test/classes/IndexTest.php b/test/classes/IndexTest.php index 3d6dd19094..139455dc80 100644 --- a/test/classes/IndexTest.php +++ b/test/classes/IndexTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Index; diff --git a/test/classes/InsertEditTest.php b/test/classes/InsertEditTest.php index 0b30a49652..2f40cbd79e 100644 --- a/test/classes/InsertEditTest.php +++ b/test/classes/InsertEditTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/IpAllowDenyTest.php b/test/classes/IpAllowDenyTest.php index d7d0e6d2a1..f7c89b66cd 100644 --- a/test/classes/IpAllowDenyTest.php +++ b/test/classes/IpAllowDenyTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Core; diff --git a/test/classes/LanguageTest.php b/test/classes/LanguageTest.php index edf952ec66..efe73e378c 100644 --- a/test/classes/LanguageTest.php +++ b/test/classes/LanguageTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\LanguageManager; diff --git a/test/classes/LinterTest.php b/test/classes/LinterTest.php index 0dd70e8ff6..e8a4fcf5ef 100644 --- a/test/classes/LinterTest.php +++ b/test/classes/LinterTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Linter; diff --git a/test/classes/ListDatabaseTest.php b/test/classes/ListDatabaseTest.php index 51920b595c..42c7cfc964 100644 --- a/test/classes/ListDatabaseTest.php +++ b/test/classes/ListDatabaseTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\ListDatabase; diff --git a/test/classes/MenuTest.php b/test/classes/MenuTest.php index 6cdee18208..87d7254c30 100644 --- a/test/classes/MenuTest.php +++ b/test/classes/MenuTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Core; diff --git a/test/classes/MessageTest.php b/test/classes/MessageTest.php index 519bbf26fc..b557cdb3bb 100644 --- a/test/classes/MessageTest.php +++ b/test/classes/MessageTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Message; diff --git a/test/classes/MimeTest.php b/test/classes/MimeTest.php index f26d72657b..861203615e 100644 --- a/test/classes/MimeTest.php +++ b/test/classes/MimeTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Mime; diff --git a/test/classes/MultSubmitsTest.php b/test/classes/MultSubmitsTest.php index 16636c1428..9dcf19d4c3 100644 --- a/test/classes/MultSubmitsTest.php +++ b/test/classes/MultSubmitsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\MultSubmits; diff --git a/test/classes/Navigation/NavigationTest.php b/test/classes/Navigation/NavigationTest.php index e83bfb09dd..a0ac1f028d 100644 --- a/test/classes/Navigation/NavigationTest.php +++ b/test/classes/Navigation/NavigationTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation; use PhpMyAdmin\Navigation\Navigation; diff --git a/test/classes/Navigation/NavigationTreeTest.php b/test/classes/Navigation/NavigationTreeTest.php index 0149332035..f5e31c3a29 100644 --- a/test/classes/Navigation/NavigationTreeTest.php +++ b/test/classes/Navigation/NavigationTreeTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation; use PhpMyAdmin\Config; diff --git a/test/classes/Navigation/NodeFactoryTest.php b/test/classes/Navigation/NodeFactoryTest.php index 5129ea00b8..6ec8c0a4ae 100644 --- a/test/classes/Navigation/NodeFactoryTest.php +++ b/test/classes/Navigation/NodeFactoryTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeColumnContainerTest.php b/test/classes/Navigation/Nodes/NodeColumnContainerTest.php index 94ea54988b..164c6f864f 100644 --- a/test/classes/Navigation/Nodes/NodeColumnContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeColumnContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeColumnTest.php b/test/classes/Navigation/Nodes/NodeColumnTest.php index 96eec958ed..63090e9a7d 100644 --- a/test/classes/Navigation/Nodes/NodeColumnTest.php +++ b/test/classes/Navigation/Nodes/NodeColumnTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeDatabaseChildTest.php b/test/classes/Navigation/Nodes/NodeDatabaseChildTest.php index 667ba9e527..5123bf9264 100644 --- a/test/classes/Navigation/Nodes/NodeDatabaseChildTest.php +++ b/test/classes/Navigation/Nodes/NodeDatabaseChildTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeDatabaseTest.php b/test/classes/Navigation/Nodes/NodeDatabaseTest.php index 6bd2c945c7..da3c158808 100644 --- a/test/classes/Navigation/Nodes/NodeDatabaseTest.php +++ b/test/classes/Navigation/Nodes/NodeDatabaseTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeEventContainerTest.php b/test/classes/Navigation/Nodes/NodeEventContainerTest.php index 7651954bba..70b487da39 100644 --- a/test/classes/Navigation/Nodes/NodeEventContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeEventContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeEventTest.php b/test/classes/Navigation/Nodes/NodeEventTest.php index c88962268a..2207bd7d6b 100644 --- a/test/classes/Navigation/Nodes/NodeEventTest.php +++ b/test/classes/Navigation/Nodes/NodeEventTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeFunctionContainerTest.php b/test/classes/Navigation/Nodes/NodeFunctionContainerTest.php index 703902b341..64815094e6 100644 --- a/test/classes/Navigation/Nodes/NodeFunctionContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeFunctionContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeFunctionTest.php b/test/classes/Navigation/Nodes/NodeFunctionTest.php index 8b8ea4a1f6..a43933d87a 100644 --- a/test/classes/Navigation/Nodes/NodeFunctionTest.php +++ b/test/classes/Navigation/Nodes/NodeFunctionTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeIndexContainerTest.php b/test/classes/Navigation/Nodes/NodeIndexContainerTest.php index c83d131cea..c92a28fbb9 100644 --- a/test/classes/Navigation/Nodes/NodeIndexContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeIndexContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeIndexTest.php b/test/classes/Navigation/Nodes/NodeIndexTest.php index 38ee6f6b63..c152b42800 100644 --- a/test/classes/Navigation/Nodes/NodeIndexTest.php +++ b/test/classes/Navigation/Nodes/NodeIndexTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeProcedureContainerTest.php b/test/classes/Navigation/Nodes/NodeProcedureContainerTest.php index 8420053f0e..eaf465911a 100644 --- a/test/classes/Navigation/Nodes/NodeProcedureContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeProcedureContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeProcedureTest.php b/test/classes/Navigation/Nodes/NodeProcedureTest.php index a964ace9c4..e798a1e67b 100644 --- a/test/classes/Navigation/Nodes/NodeProcedureTest.php +++ b/test/classes/Navigation/Nodes/NodeProcedureTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeTableContainerTest.php b/test/classes/Navigation/Nodes/NodeTableContainerTest.php index 41e9edf2d9..e8bd5ee922 100644 --- a/test/classes/Navigation/Nodes/NodeTableContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeTableContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeTableTest.php b/test/classes/Navigation/Nodes/NodeTableTest.php index 6e2fd21ceb..c695797679 100644 --- a/test/classes/Navigation/Nodes/NodeTableTest.php +++ b/test/classes/Navigation/Nodes/NodeTableTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeTest.php b/test/classes/Navigation/Nodes/NodeTest.php index 4ee258b134..d1abfdbc89 100644 --- a/test/classes/Navigation/Nodes/NodeTest.php +++ b/test/classes/Navigation/Nodes/NodeTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeTriggerContainerTest.php b/test/classes/Navigation/Nodes/NodeTriggerContainerTest.php index 1ef6784e54..dabd8fdd60 100644 --- a/test/classes/Navigation/Nodes/NodeTriggerContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeTriggerContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeTriggerTest.php b/test/classes/Navigation/Nodes/NodeTriggerTest.php index 68f7f7106e..7a8d5acf5b 100644 --- a/test/classes/Navigation/Nodes/NodeTriggerTest.php +++ b/test/classes/Navigation/Nodes/NodeTriggerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeViewContainerTest.php b/test/classes/Navigation/Nodes/NodeViewContainerTest.php index f9dbf28754..d42a973307 100644 --- a/test/classes/Navigation/Nodes/NodeViewContainerTest.php +++ b/test/classes/Navigation/Nodes/NodeViewContainerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/Navigation/Nodes/NodeViewTest.php b/test/classes/Navigation/Nodes/NodeViewTest.php index f1c50e8452..598b81f6f3 100644 --- a/test/classes/Navigation/Nodes/NodeViewTest.php +++ b/test/classes/Navigation/Nodes/NodeViewTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; diff --git a/test/classes/NormalizationTest.php b/test/classes/NormalizationTest.php index f9bf1996c3..17c3b862e7 100644 --- a/test/classes/NormalizationTest.php +++ b/test/classes/NormalizationTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/OperationsTest.php b/test/classes/OperationsTest.php index cd425f37cd..7ed729c83e 100644 --- a/test/classes/OperationsTest.php +++ b/test/classes/OperationsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Operations; diff --git a/test/classes/PdfTest.php b/test/classes/PdfTest.php index 0f8942d220..17e8d6139a 100644 --- a/test/classes/PdfTest.php +++ b/test/classes/PdfTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/Plugins/Auth/AuthenticationConfigTest.php b/test/classes/Plugins/Auth/AuthenticationConfigTest.php index 7ac788c782..95dd00525a 100644 --- a/test/classes/Plugins/Auth/AuthenticationConfigTest.php +++ b/test/classes/Plugins/Auth/AuthenticationConfigTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Auth; use PhpMyAdmin\Config; diff --git a/test/classes/Plugins/Auth/AuthenticationCookieTest.php b/test/classes/Plugins/Auth/AuthenticationCookieTest.php index 48f18966ed..2a60dbca19 100644 --- a/test/classes/Plugins/Auth/AuthenticationCookieTest.php +++ b/test/classes/Plugins/Auth/AuthenticationCookieTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Auth; use PhpMyAdmin\Config; diff --git a/test/classes/Plugins/Auth/AuthenticationHttpTest.php b/test/classes/Plugins/Auth/AuthenticationHttpTest.php index ac72bd292e..aaa1d5f499 100644 --- a/test/classes/Plugins/Auth/AuthenticationHttpTest.php +++ b/test/classes/Plugins/Auth/AuthenticationHttpTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Auth; use PhpMyAdmin\Config; diff --git a/test/classes/Plugins/Auth/AuthenticationSignonTest.php b/test/classes/Plugins/Auth/AuthenticationSignonTest.php index 262dd2301e..3ff893d201 100644 --- a/test/classes/Plugins/Auth/AuthenticationSignonTest.php +++ b/test/classes/Plugins/Auth/AuthenticationSignonTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Auth; use PhpMyAdmin\Config; diff --git a/test/classes/Plugins/Export/ExportCodegenTest.php b/test/classes/Plugins/Export/ExportCodegenTest.php index 58e05153ed..b807ca2902 100644 --- a/test/classes/Plugins/Export/ExportCodegenTest.php +++ b/test/classes/Plugins/Export/ExportCodegenTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\Plugins\Export\ExportCodegen; diff --git a/test/classes/Plugins/Export/ExportCsvTest.php b/test/classes/Plugins/Export/ExportCsvTest.php index 0e17f1280c..8304e89021 100644 --- a/test/classes/Plugins/Export/ExportCsvTest.php +++ b/test/classes/Plugins/Export/ExportCsvTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportExcelTest.php b/test/classes/Plugins/Export/ExportExcelTest.php index 3f771bb177..2257b28a71 100644 --- a/test/classes/Plugins/Export/ExportExcelTest.php +++ b/test/classes/Plugins/Export/ExportExcelTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\Plugins\Export\ExportExcel; diff --git a/test/classes/Plugins/Export/ExportHtmlwordTest.php b/test/classes/Plugins/Export/ExportHtmlwordTest.php index afdd40c043..8ef0c81eed 100644 --- a/test/classes/Plugins/Export/ExportHtmlwordTest.php +++ b/test/classes/Plugins/Export/ExportHtmlwordTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportJsonTest.php b/test/classes/Plugins/Export/ExportJsonTest.php index 50ead4d27b..460cf75a1c 100644 --- a/test/classes/Plugins/Export/ExportJsonTest.php +++ b/test/classes/Plugins/Export/ExportJsonTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\Plugins\Export\ExportJson; diff --git a/test/classes/Plugins/Export/ExportLatexTest.php b/test/classes/Plugins/Export/ExportLatexTest.php index ba6649fa84..5ef6ddf8e8 100644 --- a/test/classes/Plugins/Export/ExportLatexTest.php +++ b/test/classes/Plugins/Export/ExportLatexTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\Plugins\Export\ExportLatex; diff --git a/test/classes/Plugins/Export/ExportMediawikiTest.php b/test/classes/Plugins/Export/ExportMediawikiTest.php index 31f1747acf..11a0f24200 100644 --- a/test/classes/Plugins/Export/ExportMediawikiTest.php +++ b/test/classes/Plugins/Export/ExportMediawikiTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportOdsTest.php b/test/classes/Plugins/Export/ExportOdsTest.php index fcd27d5738..6885180d81 100644 --- a/test/classes/Plugins/Export/ExportOdsTest.php +++ b/test/classes/Plugins/Export/ExportOdsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportOdtTest.php b/test/classes/Plugins/Export/ExportOdtTest.php index fbe1f3dfc8..6fd5c0cae9 100644 --- a/test/classes/Plugins/Export/ExportOdtTest.php +++ b/test/classes/Plugins/Export/ExportOdtTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportPdfTest.php b/test/classes/Plugins/Export/ExportPdfTest.php index 0a2e13baeb..b9ba1de3fe 100644 --- a/test/classes/Plugins/Export/ExportPdfTest.php +++ b/test/classes/Plugins/Export/ExportPdfTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\Plugins\Export\ExportPdf; diff --git a/test/classes/Plugins/Export/ExportPhparrayTest.php b/test/classes/Plugins/Export/ExportPhparrayTest.php index d326d71fee..9bbb963a3d 100644 --- a/test/classes/Plugins/Export/ExportPhparrayTest.php +++ b/test/classes/Plugins/Export/ExportPhparrayTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportSqlTest.php b/test/classes/Plugins/Export/ExportSqlTest.php index 2a6ee2d6fc..bda8104de0 100644 --- a/test/classes/Plugins/Export/ExportSqlTest.php +++ b/test/classes/Plugins/Export/ExportSqlTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportTexytextTest.php b/test/classes/Plugins/Export/ExportTexytextTest.php index d6a9bb7d67..4b6e1c3c80 100644 --- a/test/classes/Plugins/Export/ExportTexytextTest.php +++ b/test/classes/Plugins/Export/ExportTexytextTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportXmlTest.php b/test/classes/Plugins/Export/ExportXmlTest.php index 45f783eb64..1e409a3d4b 100644 --- a/test/classes/Plugins/Export/ExportXmlTest.php +++ b/test/classes/Plugins/Export/ExportXmlTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/ExportYamlTest.php b/test/classes/Plugins/Export/ExportYamlTest.php index 3c70d2189c..fd6cf28f99 100644 --- a/test/classes/Plugins/Export/ExportYamlTest.php +++ b/test/classes/Plugins/Export/ExportYamlTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Plugins/Export/Helpers/TablePropertyTest.php b/test/classes/Plugins/Export/Helpers/TablePropertyTest.php index c8c53e51e5..5aa0f8bea9 100644 --- a/test/classes/Plugins/Export/Helpers/TablePropertyTest.php +++ b/test/classes/Plugins/Export/Helpers/TablePropertyTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Export\Helpers; use PhpMyAdmin\Plugins\Export\Helpers\TableProperty; diff --git a/test/classes/Plugins/Import/ImportCsvTest.php b/test/classes/Plugins/Import/ImportCsvTest.php index f74f4ae513..45c7a7ee67 100644 --- a/test/classes/Plugins/Import/ImportCsvTest.php +++ b/test/classes/Plugins/Import/ImportCsvTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportLdiTest.php b/test/classes/Plugins/Import/ImportLdiTest.php index cbd8721505..a4075c8cfc 100644 --- a/test/classes/Plugins/Import/ImportLdiTest.php +++ b/test/classes/Plugins/Import/ImportLdiTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportMediawikiTest.php b/test/classes/Plugins/Import/ImportMediawikiTest.php index 265a149672..490a525532 100644 --- a/test/classes/Plugins/Import/ImportMediawikiTest.php +++ b/test/classes/Plugins/Import/ImportMediawikiTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportOdsTest.php b/test/classes/Plugins/Import/ImportOdsTest.php index 40cabebbfb..a2969182b0 100644 --- a/test/classes/Plugins/Import/ImportOdsTest.php +++ b/test/classes/Plugins/Import/ImportOdsTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportShpTest.php b/test/classes/Plugins/Import/ImportShpTest.php index 02be7e7291..6bd6c9dd49 100644 --- a/test/classes/Plugins/Import/ImportShpTest.php +++ b/test/classes/Plugins/Import/ImportShpTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportSqlTest.php b/test/classes/Plugins/Import/ImportSqlTest.php index 57228eb492..5a2672a1e7 100644 --- a/test/classes/Plugins/Import/ImportSqlTest.php +++ b/test/classes/Plugins/Import/ImportSqlTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Import/ImportXmlTest.php b/test/classes/Plugins/Import/ImportXmlTest.php index 8abdfbdc07..4c01d33428 100644 --- a/test/classes/Plugins/Import/ImportXmlTest.php +++ b/test/classes/Plugins/Import/ImportXmlTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Import; use PhpMyAdmin\File; diff --git a/test/classes/Plugins/Schema/DiaRelationSchemaTest.php b/test/classes/Plugins/Schema/DiaRelationSchemaTest.php index 5c08609280..3909e44b35 100644 --- a/test/classes/Plugins/Schema/DiaRelationSchemaTest.php +++ b/test/classes/Plugins/Schema/DiaRelationSchemaTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Schema; use PhpMyAdmin\Plugins\Schema\Dia\DiaRelationSchema; diff --git a/test/classes/Plugins/Schema/EpsRelationSchemaTest.php b/test/classes/Plugins/Schema/EpsRelationSchemaTest.php index b9aea56d85..0dc56cb2d5 100644 --- a/test/classes/Plugins/Schema/EpsRelationSchemaTest.php +++ b/test/classes/Plugins/Schema/EpsRelationSchemaTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Schema; use PhpMyAdmin\Plugins\Schema\Eps\EpsRelationSchema; diff --git a/test/classes/Plugins/Schema/ExportRelationSchemaTest.php b/test/classes/Plugins/Schema/ExportRelationSchemaTest.php index f1509e9191..afdb2bef59 100644 --- a/test/classes/Plugins/Schema/ExportRelationSchemaTest.php +++ b/test/classes/Plugins/Schema/ExportRelationSchemaTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Schema; use PhpMyAdmin\Plugins\Schema\ExportRelationSchema; diff --git a/test/classes/Plugins/Schema/PdfRelationSchemaTest.php b/test/classes/Plugins/Schema/PdfRelationSchemaTest.php index 65bcf901d2..e9238d7c07 100644 --- a/test/classes/Plugins/Schema/PdfRelationSchemaTest.php +++ b/test/classes/Plugins/Schema/PdfRelationSchemaTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Schema; use PhpMyAdmin\Plugins\Schema\Pdf\PdfRelationSchema; diff --git a/test/classes/Plugins/Schema/SvgRelationSchemaTest.php b/test/classes/Plugins/Schema/SvgRelationSchemaTest.php index 11dc2256e9..b83897241f 100644 --- a/test/classes/Plugins/Schema/SvgRelationSchemaTest.php +++ b/test/classes/Plugins/Schema/SvgRelationSchemaTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Schema; use PhpMyAdmin\Plugins\Schema\Svg\SvgRelationSchema; diff --git a/test/classes/Plugins/Transformations/TransformationPluginsTest.php b/test/classes/Plugins/Transformations/TransformationPluginsTest.php index 609c908d20..db74f226dd 100644 --- a/test/classes/Plugins/Transformations/TransformationPluginsTest.php +++ b/test/classes/Plugins/Transformations/TransformationPluginsTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Plugins\Transformations; use PhpMyAdmin\Config; diff --git a/test/classes/PmaTestCase.php b/test/classes/PmaTestCase.php index 3a645ef44b..d226027a2a 100644 --- a/test/classes/PmaTestCase.php +++ b/test/classes/PmaTestCase.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Response; diff --git a/test/classes/Properties/Options/Groups/OptionsPropertyMainGroupTest.php b/test/classes/Properties/Options/Groups/OptionsPropertyMainGroupTest.php index e1f6e01433..1bf33b3c62 100644 --- a/test/classes/Properties/Options/Groups/OptionsPropertyMainGroupTest.php +++ b/test/classes/Properties/Options/Groups/OptionsPropertyMainGroupTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options\Groups; use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup; diff --git a/test/classes/Properties/Options/Groups/OptionsPropertyRootGroupTest.php b/test/classes/Properties/Options/Groups/OptionsPropertyRootGroupTest.php index b6f85e2b79..963aefa35a 100644 --- a/test/classes/Properties/Options/Groups/OptionsPropertyRootGroupTest.php +++ b/test/classes/Properties/Options/Groups/OptionsPropertyRootGroupTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options\Groups; use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup; diff --git a/test/classes/Properties/Options/Groups/OptionsPropertySubgroupTest.php b/test/classes/Properties/Options/Groups/OptionsPropertySubgroupTest.php index 7e86a63c2b..93de24e06a 100644 --- a/test/classes/Properties/Options/Groups/OptionsPropertySubgroupTest.php +++ b/test/classes/Properties/Options/Groups/OptionsPropertySubgroupTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options\Groups; use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup; diff --git a/test/classes/Properties/Options/Items/PropertyItemsTest.php b/test/classes/Properties/Options/Items/PropertyItemsTest.php index 64da38d374..78fc728025 100644 --- a/test/classes/Properties/Options/Items/PropertyItemsTest.php +++ b/test/classes/Properties/Options/Items/PropertyItemsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options\Items; use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem; diff --git a/test/classes/Properties/Options/OptionsPropertyGroupTest.php b/test/classes/Properties/Options/OptionsPropertyGroupTest.php index 2f7adb1c68..e76d995ef5 100644 --- a/test/classes/Properties/Options/OptionsPropertyGroupTest.php +++ b/test/classes/Properties/Options/OptionsPropertyGroupTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Properties/Options/OptionsPropertyItemTest.php b/test/classes/Properties/Options/OptionsPropertyItemTest.php index 265a2308fa..26349d0f03 100644 --- a/test/classes/Properties/Options/OptionsPropertyItemTest.php +++ b/test/classes/Properties/Options/OptionsPropertyItemTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Properties/Options/OptionsPropertyOneItemTest.php b/test/classes/Properties/Options/OptionsPropertyOneItemTest.php index 1dc8d000e5..fc83262eb7 100644 --- a/test/classes/Properties/Options/OptionsPropertyOneItemTest.php +++ b/test/classes/Properties/Options/OptionsPropertyOneItemTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Options; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php b/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php index d3a1610b61..5039ce3005 100644 --- a/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php +++ b/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Plugins; use PhpMyAdmin\Properties\Plugins\ExportPluginProperties; diff --git a/test/classes/Properties/Plugins/ImportPluginPropertiesTest.php b/test/classes/Properties/Plugins/ImportPluginPropertiesTest.php index 934721880f..b21a4fd1fc 100644 --- a/test/classes/Properties/Plugins/ImportPluginPropertiesTest.php +++ b/test/classes/Properties/Plugins/ImportPluginPropertiesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Plugins; use PhpMyAdmin\Properties\Plugins\ImportPluginProperties; diff --git a/test/classes/Properties/Plugins/PluginPropertyItemTest.php b/test/classes/Properties/Plugins/PluginPropertyItemTest.php index 8a27540024..959f826bd7 100644 --- a/test/classes/Properties/Plugins/PluginPropertyItemTest.php +++ b/test/classes/Properties/Plugins/PluginPropertyItemTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties\Plugins; use PHPUnit\Framework\TestCase; diff --git a/test/classes/Properties/PropertyItemTest.php b/test/classes/Properties/PropertyItemTest.php index 564506f41e..4660955176 100644 --- a/test/classes/Properties/PropertyItemTest.php +++ b/test/classes/Properties/PropertyItemTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Properties; use PHPUnit\Framework\TestCase; diff --git a/test/classes/RelationCleanupDbiMock.php b/test/classes/RelationCleanupDbiMock.php index 164e43b5b9..ddeaa16ba3 100644 --- a/test/classes/RelationCleanupDbiMock.php +++ b/test/classes/RelationCleanupDbiMock.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/RelationCleanupTest.php b/test/classes/RelationCleanupTest.php index 1e2160a497..c744ef0919 100644 --- a/test/classes/RelationCleanupTest.php +++ b/test/classes/RelationCleanupTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/RelationTest.php b/test/classes/RelationTest.php index 946dac3fa0..f59fbebc1e 100644 --- a/test/classes/RelationTest.php +++ b/test/classes/RelationTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Relation; diff --git a/test/classes/ReplicationGuiTest.php b/test/classes/ReplicationGuiTest.php index 1761509b51..bacac3ca93 100644 --- a/test/classes/ReplicationGuiTest.php +++ b/test/classes/ReplicationGuiTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Rte/EventsTest.php b/test/classes/Rte/EventsTest.php index 60e6819c26..831dd417b1 100644 --- a/test/classes/Rte/EventsTest.php +++ b/test/classes/Rte/EventsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Rte; use PhpMyAdmin\Response; diff --git a/test/classes/Rte/RoutinesTest.php b/test/classes/Rte/RoutinesTest.php index 441f196c77..6ffacde19b 100644 --- a/test/classes/Rte/RoutinesTest.php +++ b/test/classes/Rte/RoutinesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Rte; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/Rte/TriggersTest.php b/test/classes/Rte/TriggersTest.php index 07d82fd038..a2119dd584 100644 --- a/test/classes/Rte/TriggersTest.php +++ b/test/classes/Rte/TriggersTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Rte; use PhpMyAdmin\Response; diff --git a/test/classes/SanitizeTest.php b/test/classes/SanitizeTest.php index 98aeb90c2f..acd53a5c7a 100644 --- a/test/classes/SanitizeTest.php +++ b/test/classes/SanitizeTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Sanitize; diff --git a/test/classes/ScriptsTest.php b/test/classes/ScriptsTest.php index d793c236af..a7cca57b80 100644 --- a/test/classes/ScriptsTest.php +++ b/test/classes/ScriptsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Scripts; diff --git a/test/classes/Server/PrivilegesTest.php b/test/classes/Server/PrivilegesTest.php index 8deaae72bf..0bd603fbb2 100644 --- a/test/classes/Server/PrivilegesTest.php +++ b/test/classes/Server/PrivilegesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server; use PhpMyAdmin\Core; diff --git a/test/classes/Server/SelectTest.php b/test/classes/Server/SelectTest.php index 24f793f2b3..fe45a42160 100644 --- a/test/classes/Server/SelectTest.php +++ b/test/classes/Server/SelectTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server; use PhpMyAdmin\Server\Select; diff --git a/test/classes/Server/Status/AdvisorTest.php b/test/classes/Server/Status/AdvisorTest.php index 6b27d715a9..0f22acda3d 100644 --- a/test/classes/Server/Status/AdvisorTest.php +++ b/test/classes/Server/Status/AdvisorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/Status/DataTest.php b/test/classes/Server/Status/DataTest.php index 2ecb9291ae..c005b7ec27 100644 --- a/test/classes/Server/Status/DataTest.php +++ b/test/classes/Server/Status/DataTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/Status/MonitorTest.php b/test/classes/Server/Status/MonitorTest.php index 529c2b9552..6ca0444ee4 100644 --- a/test/classes/Server/Status/MonitorTest.php +++ b/test/classes/Server/Status/MonitorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/Status/ProcessesTest.php b/test/classes/Server/Status/ProcessesTest.php index a0bb4f97ab..065bf9b806 100644 --- a/test/classes/Server/Status/ProcessesTest.php +++ b/test/classes/Server/Status/ProcessesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/Status/QueriesTest.php b/test/classes/Server/Status/QueriesTest.php index 9ee99a4590..41f47117ed 100644 --- a/test/classes/Server/Status/QueriesTest.php +++ b/test/classes/Server/Status/QueriesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/Status/VariablesTest.php b/test/classes/Server/Status/VariablesTest.php index 34d80b5842..29080f0793 100644 --- a/test/classes/Server/Status/VariablesTest.php +++ b/test/classes/Server/Status/VariablesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server\Status; use PhpMyAdmin\Core; diff --git a/test/classes/Server/StatusTest.php b/test/classes/Server/StatusTest.php index 1177d3bb57..743dbc6186 100644 --- a/test/classes/Server/StatusTest.php +++ b/test/classes/Server/StatusTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server; use PhpMyAdmin\Core; diff --git a/test/classes/Server/UserGroupsTest.php b/test/classes/Server/UserGroupsTest.php index c03bb60e16..9e2501b720 100644 --- a/test/classes/Server/UserGroupsTest.php +++ b/test/classes/Server/UserGroupsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server; use PhpMyAdmin\Server\UserGroups; diff --git a/test/classes/Server/UsersTest.php b/test/classes/Server/UsersTest.php index af7b741b18..7b5909afc2 100644 --- a/test/classes/Server/UsersTest.php +++ b/test/classes/Server/UsersTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Server; use PhpMyAdmin\Server\Users; diff --git a/test/classes/Setup/ConfigGeneratorTest.php b/test/classes/Setup/ConfigGeneratorTest.php index 8ba7af9a6d..89f146ffa1 100644 --- a/test/classes/Setup/ConfigGeneratorTest.php +++ b/test/classes/Setup/ConfigGeneratorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Setup; use PhpMyAdmin\Config; diff --git a/test/classes/Setup/FormProcessingTest.php b/test/classes/Setup/FormProcessingTest.php index 9ba6f8af5e..f174571c40 100644 --- a/test/classes/Setup/FormProcessingTest.php +++ b/test/classes/Setup/FormProcessingTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Setup; use PhpMyAdmin\Setup\FormProcessing; diff --git a/test/classes/Setup/IndexTest.php b/test/classes/Setup/IndexTest.php index bca6a1028f..44f2182a59 100644 --- a/test/classes/Setup/IndexTest.php +++ b/test/classes/Setup/IndexTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Setup; use PhpMyAdmin\Setup\Index as SetupIndex; diff --git a/test/classes/SqlQueryFormTest.php b/test/classes/SqlQueryFormTest.php index 2efaf16a53..27d57c20fa 100644 --- a/test/classes/SqlQueryFormTest.php +++ b/test/classes/SqlQueryFormTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Core; diff --git a/test/classes/SqlTest.php b/test/classes/SqlTest.php index 90e69f95d9..72c3865603 100644 --- a/test/classes/SqlTest.php +++ b/test/classes/SqlTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Sql; diff --git a/test/classes/StorageEngineTest.php b/test/classes/StorageEngineTest.php index 7e333ee9cf..21420a2310 100644 --- a/test/classes/StorageEngineTest.php +++ b/test/classes/StorageEngineTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\StorageEngine; diff --git a/test/classes/Stubs/Response.php b/test/classes/Stubs/Response.php index 20e60e80f9..82eff4906c 100644 --- a/test/classes/Stubs/Response.php +++ b/test/classes/Stubs/Response.php @@ -10,6 +10,8 @@ * @package PhpMyAdmin * @subpackage Stubs */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Stubs; use PhpMyAdmin\Header; diff --git a/test/classes/SysInfoTest.php b/test/classes/SysInfoTest.php index b7cc317c57..7a60931a38 100644 --- a/test/classes/SysInfoTest.php +++ b/test/classes/SysInfoTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\SysInfo; diff --git a/test/classes/SystemDatabaseTest.php b/test/classes/SystemDatabaseTest.php index 74f95cd879..082a9ee8fd 100644 --- a/test/classes/SystemDatabaseTest.php +++ b/test/classes/SystemDatabaseTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\SystemDatabase; diff --git a/test/classes/TableTest.php b/test/classes/TableTest.php index 99e7352c6d..729e1f9df8 100644 --- a/test/classes/TableTest.php +++ b/test/classes/TableTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/TemplateTest.php b/test/classes/TemplateTest.php index 9fa13ee216..3543eb211e 100644 --- a/test/classes/TemplateTest.php +++ b/test/classes/TemplateTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Template; diff --git a/test/classes/ThemeManagerTest.php b/test/classes/ThemeManagerTest.php index 33fd46756f..44091ec2cf 100644 --- a/test/classes/ThemeManagerTest.php +++ b/test/classes/ThemeManagerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/ThemeTest.php b/test/classes/ThemeTest.php index 6325a74e77..f0019f248f 100644 --- a/test/classes/ThemeTest.php +++ b/test/classes/ThemeTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; diff --git a/test/classes/TrackerTest.php b/test/classes/TrackerTest.php index c94c848231..30a7064a1f 100644 --- a/test/classes/TrackerTest.php +++ b/test/classes/TrackerTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; diff --git a/test/classes/TrackingTest.php b/test/classes/TrackingTest.php index a92082ea85..4741318bd7 100644 --- a/test/classes/TrackingTest.php +++ b/test/classes/TrackingTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Tracking; diff --git a/test/classes/TransformationsTest.php b/test/classes/TransformationsTest.php index 2f48461a60..3981c9d853 100644 --- a/test/classes/TransformationsTest.php +++ b/test/classes/TransformationsTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Theme; diff --git a/test/classes/TwoFactorTest.php b/test/classes/TwoFactorTest.php index 89d7d01c05..260ab5513b 100644 --- a/test/classes/TwoFactorTest.php +++ b/test/classes/TwoFactorTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\TwoFactor; diff --git a/test/classes/TypesTest.php b/test/classes/TypesTest.php index a9b7fd64c2..66ab31c571 100644 --- a/test/classes/TypesTest.php +++ b/test/classes/TypesTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Tests\PmaTestCase; diff --git a/test/classes/UrlTest.php b/test/classes/UrlTest.php index 2bce450315..92ec62c21f 100644 --- a/test/classes/UrlTest.php +++ b/test/classes/UrlTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Url; diff --git a/test/classes/UserPreferencesTest.php b/test/classes/UserPreferencesTest.php index af0379af93..e9ffa8f921 100644 --- a/test/classes/UserPreferencesTest.php +++ b/test/classes/UserPreferencesTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config\ConfigFile; diff --git a/test/classes/UtilTest.php b/test/classes/UtilTest.php index eaf2039b68..939eb2f2c6 100644 --- a/test/classes/UtilTest.php +++ b/test/classes/UtilTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; @@ -864,15 +866,15 @@ class UtilTest extends PmaTestCase // Test with various precisions $old_precision = ini_get('precision'); try { - ini_set('precision', 20); + ini_set('precision', '20'); $this->assertFormatNumber($a, $b, $c, $d); - ini_set('precision', 14); + ini_set('precision', '14'); $this->assertFormatNumber($a, $b, $c, $d); - ini_set('precision', 10); + ini_set('precision', '10'); $this->assertFormatNumber($a, $b, $c, $d); - ini_set('precision', 5); + ini_set('precision', '5'); $this->assertFormatNumber($a, $b, $c, $d); - ini_set('precision', -1); + ini_set('precision', '-1'); $this->assertFormatNumber($a, $b, $c, $d); } finally { ini_set('precision', $old_precision); diff --git a/test/classes/Utils/HttpRequestTest.php b/test/classes/Utils/HttpRequestTest.php index c80f674127..3f2870ce1c 100644 --- a/test/classes/Utils/HttpRequestTest.php +++ b/test/classes/Utils/HttpRequestTest.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); namespace PhpMyAdmin\Tests\Utils; diff --git a/test/classes/VersionInformationTest.php b/test/classes/VersionInformationTest.php index f0af6b55cd..e807f51697 100644 --- a/test/classes/VersionInformationTest.php +++ b/test/classes/VersionInformationTest.php @@ -5,6 +5,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Tests\PmaTestCase; diff --git a/test/classes/ZipExtensionTest.php b/test/classes/ZipExtensionTest.php index f99fc6d285..6a8bfb8b5c 100644 --- a/test/classes/ZipExtensionTest.php +++ b/test/classes/ZipExtensionTest.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests; use PhpMyAdmin\Tests\PmaTestCase; diff --git a/test/libraries/Files_test.php b/test/libraries/Files_test.php index 97c0c6c6a6..b938478ce0 100644 --- a/test/libraries/Files_test.php +++ b/test/libraries/Files_test.php @@ -5,10 +5,7 @@ * * @package PhpMyAdmin-test */ - -/* - * Include to test. - */ +declare(strict_types=1); use PHPUnit\Framework\TestCase; diff --git a/test/libraries/common/PMA_checkbox_test.php b/test/libraries/common/PMA_checkbox_test.php index 85c9c4a9aa..3c19422157 100644 --- a/test/libraries/common/PMA_checkbox_test.php +++ b/test/libraries/common/PMA_checkbox_test.php @@ -6,10 +6,7 @@ * @package PhpMyAdmin-test * @group common.lib-tests */ - -/* - * Include to test. - */ +declare(strict_types=1); use PHPUnit\Framework\TestCase; diff --git a/test/libraries/database_interface_test.php b/test/libraries/database_interface_test.php index e247bf3e6d..5d46688a04 100644 --- a/test/libraries/database_interface_test.php +++ b/test/libraries/database_interface_test.php @@ -5,12 +5,9 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); -/* - * Include to test. - */ - - use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase; /** * Tests basic functionality of dummy dbi driver diff --git a/test/selenium/ChangePasswordTest.php b/test/selenium/ChangePasswordTest.php index e3749853a9..df42299186 100644 --- a/test/selenium/ChangePasswordTest.php +++ b/test/selenium/ChangePasswordTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/CreateDropDatabaseTest.php b/test/selenium/CreateDropDatabaseTest.php index 6fe2dc6727..65c492cc22 100644 --- a/test/selenium/CreateDropDatabaseTest.php +++ b/test/selenium/CreateDropDatabaseTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/CreateRemoveUserTest.php b/test/selenium/CreateRemoveUserTest.php index 86fba66674..698a2b703e 100644 --- a/test/selenium/CreateRemoveUserTest.php +++ b/test/selenium/CreateRemoveUserTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/DbEventsTest.php b/test/selenium/DbEventsTest.php index 37f767bb3c..3f6a630459 100644 --- a/test/selenium/DbEventsTest.php +++ b/test/selenium/DbEventsTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/DbOperationsTest.php b/test/selenium/DbOperationsTest.php index e419baa042..b7d4369400 100644 --- a/test/selenium/DbOperationsTest.php +++ b/test/selenium/DbOperationsTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/DbProceduresTest.php b/test/selenium/DbProceduresTest.php index bf55326834..a0fb86b7b2 100644 --- a/test/selenium/DbProceduresTest.php +++ b/test/selenium/DbProceduresTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/DbStructureTest.php b/test/selenium/DbStructureTest.php index 96bbd4925c..d430354ac8 100644 --- a/test/selenium/DbStructureTest.php +++ b/test/selenium/DbStructureTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/DbTriggersTest.php b/test/selenium/DbTriggersTest.php index 830e2eb1c5..738bb63626 100644 --- a/test/selenium/DbTriggersTest.php +++ b/test/selenium/DbTriggersTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/ExportTest.php b/test/selenium/ExportTest.php index 214c0e6d90..31e64578a4 100644 --- a/test/selenium/ExportTest.php +++ b/test/selenium/ExportTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/ImportTest.php b/test/selenium/ImportTest.php index 3412fb7f0f..dfd3565db4 100644 --- a/test/selenium/ImportTest.php +++ b/test/selenium/ImportTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/LoginTest.php b/test/selenium/LoginTest.php index a33b35878d..bb2bdff3f8 100644 --- a/test/selenium/LoginTest.php +++ b/test/selenium/LoginTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/NormalizationTest.php b/test/selenium/NormalizationTest.php index 509497ef59..76b83789ae 100644 --- a/test/selenium/NormalizationTest.php +++ b/test/selenium/NormalizationTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/QueryByExampleTest.php b/test/selenium/QueryByExampleTest.php index e74b0b885c..12ff852e76 100644 --- a/test/selenium/QueryByExampleTest.php +++ b/test/selenium/QueryByExampleTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/ServerSettingsTest.php b/test/selenium/ServerSettingsTest.php index bb95b706e3..dbc547554d 100644 --- a/test/selenium/ServerSettingsTest.php +++ b/test/selenium/ServerSettingsTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/SqlQueryTest.php b/test/selenium/SqlQueryTest.php index f258b9b1db..e9379b6a8f 100644 --- a/test/selenium/SqlQueryTest.php +++ b/test/selenium/SqlQueryTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TableBrowseTest.php b/test/selenium/TableBrowseTest.php index 335847657f..ed6d4789da 100644 --- a/test/selenium/TableBrowseTest.php +++ b/test/selenium/TableBrowseTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TableCreateTest.php b/test/selenium/TableCreateTest.php index 17a893a490..becde358b8 100644 --- a/test/selenium/TableCreateTest.php +++ b/test/selenium/TableCreateTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TableInsertTest.php b/test/selenium/TableInsertTest.php index e31191da34..9d05bc66ca 100644 --- a/test/selenium/TableInsertTest.php +++ b/test/selenium/TableInsertTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TableOperationsTest.php b/test/selenium/TableOperationsTest.php index 8223bfb431..0ea691dee1 100644 --- a/test/selenium/TableOperationsTest.php +++ b/test/selenium/TableOperationsTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TableStructureTest.php b/test/selenium/TableStructureTest.php index 788a931929..cd7fababdb 100644 --- a/test/selenium/TableStructureTest.php +++ b/test/selenium/TableStructureTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index e679a818c5..024e078742 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -6,6 +6,8 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); + namespace PhpMyAdmin\Tests\Selenium; use PHPUnit_Extensions_Selenium2TestCase as Selenium2TestCase; @@ -201,7 +203,7 @@ abstract class TestBase extends Selenium2TestCase ); } $this->database_name = $GLOBALS['TESTSUITE_DATABASE'] - . mb_substr(md5(rand()), 0, 7); + . mb_substr(md5((string) rand()), 0, 7); $this->dbQuery( 'CREATE DATABASE IF NOT EXISTS ' . $this->database_name ); diff --git a/test/selenium/TrackingTest.php b/test/selenium/TrackingTest.php index 70dbcff916..6221a70f58 100644 --- a/test/selenium/TrackingTest.php +++ b/test/selenium/TrackingTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/selenium/XssTest.php b/test/selenium/XssTest.php index 3641047595..016ba7ccb2 100644 --- a/test/selenium/XssTest.php +++ b/test/selenium/XssTest.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test * @subpackage Selenium */ +declare(strict_types=1); namespace PhpMyAdmin\Tests\Selenium; diff --git a/test/test_data/config.inc.php b/test/test_data/config.inc.php index acd0eb11bc..df94c3c594 100644 --- a/test/test_data/config.inc.php +++ b/test/test_data/config.inc.php @@ -4,6 +4,8 @@ * * @package PhpMyAdmin-test */ +declare(strict_types=1); + $i = 0; /* Server: localhost [1] */ |