Merge pull request #13802 from gabriel-caruso/phpunit
Use PSR-1 for PHPUnit TestCase
This commit is contained in:
commit
8657a28685
@ -11,12 +11,14 @@
|
||||
*/
|
||||
require_once 'config.sample.inc.php';
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Environment tests
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class Environment_Test extends PHPUnit_Framework_TestCase
|
||||
class Environment_Test extends TestCase
|
||||
{
|
||||
/**
|
||||
* Tests PHP version
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Bookmark;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for Bookmark class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\BrowseForeigners;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\BrowseForeigners
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Types;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
$GLOBALS['server'] = 1;
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Charsets;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for MySQL Charsets
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\CheckUserPrivileges;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/*
|
||||
* Include to test.
|
||||
|
||||
@ -10,7 +10,7 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\FormDisplayTemplate;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for FromDisplay.tpl.php
|
||||
|
||||
@ -8,7 +8,7 @@ namespace PhpMyAdmin\Tests\Database;
|
||||
|
||||
use PhpMyAdmin\Database\Designer;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Database\Designer
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Display\ChangePassword;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
require_once 'libraries/config.default.php';
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Display\CreateTable;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Display\CreateTableTest class
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\Plugins;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* class PhpMyAdmin\Tests\Display\ExportTest
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Encoding;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for Charset Conversions
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Export;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\ExportTest class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PhpMyAdmin\Gis\GisFactory;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Test class for PhpMyAdmin\Gis\GisFactory
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Abstract parent class for all GIS<Geom_type> test classes
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PhpMyAdmin\Gis\GisGeometryCollection;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TCPDF;
|
||||
|
||||
/**
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Import;
|
||||
use PhpMyAdmin\SqlParser\Parser;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/*
|
||||
* we must set $GLOBALS['server'] here
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\InsertEdit;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Table;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\IpAllowDeny;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\IpAllowDenyTest class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Mime;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Test for mime detection.
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\MultSubmits;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\MultSubmitsTest class
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Normalization;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Types;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
$GLOBALS['server'] = 1;
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Operations;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for operations
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Response;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionProperty;
|
||||
|
||||
/**
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\PmdCommon;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\PmdCommon
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup class
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Properties\Options\Items\MessageOnlyPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\SelectPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for *PhpMyAdmin\Properties\PropertyItem class
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionProperty;
|
||||
|
||||
/**
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyItem class
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyOneItem class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PhpMyAdmin\Properties\Plugins\ImportPluginProperties;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Plugins\ImportPluginProperties class
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Plugins\PluginPropertyItem class
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\PropertyItem class
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\RelationCleanup;
|
||||
use PhpMyAdmin\Tests\RelationCleanupDbiMock;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\RelationCleanupTest class
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Relation
|
||||
|
||||
@ -10,7 +10,7 @@ namespace PhpMyAdmin\Tests;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\ReplicationGui;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/*
|
||||
* Include to test.
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Rte;
|
||||
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Rte\Events;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* This class is for testing PhpMyAdmin\Rte\Events methods
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Rte\Routines;
|
||||
use PhpMyAdmin\Types;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* This class is for testing PhpMyAdmin\Rte\Routines methods
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Rte;
|
||||
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Rte\Triggers;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* This class is for testing PhpMyAdmin\Rte\Triggers methods
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Sanitize;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for methods in Sanitize class
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\Server\Privileges;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\PrivilegesTest class
|
||||
|
||||
@ -10,7 +10,7 @@ namespace PhpMyAdmin\Tests\Server;
|
||||
use PhpMyAdmin\Server\Select;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\SelectTest class
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status\Advisor;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\Status\AdvisorTest class
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status\Monitor;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* this class is for testing PhpMyAdmin\Server\Status\Monitor methods
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\Server\Status\Processes;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\Status\ProcessesTest class
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Server\Status\Queries;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\Status\QueriesTest class
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Server\Status\Variables;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* This class is for testing PhpMyAdmin\Server\Status\Variables methods
|
||||
|
||||
@ -12,7 +12,7 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\StatusTest class
|
||||
|
||||
@ -10,7 +10,7 @@ namespace PhpMyAdmin\Tests\Server;
|
||||
use PhpMyAdmin\Server\UserGroups;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Server\UserGroups
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Server;
|
||||
|
||||
use PhpMyAdmin\Server\Users;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\UsersTest class
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests\Setup;
|
||||
|
||||
use PhpMyAdmin\Setup\Index as SetupIndex;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for methods under PhpMyAdmin\Setup\Index
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\SqlQueryForm;
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
//the following definition should be used globally
|
||||
$GLOBALS['server'] = 0;
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Sql;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\SysInfo;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for sysinfo library
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Tracking;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Tracking
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Theme;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for transformation wrappers
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests for methods in URL class
|
||||
|
||||
@ -10,13 +10,14 @@
|
||||
* Include to test.
|
||||
*/
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* tests for bookmark.lib.php
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class FilesTest extends PHPUnit_Framework_TestCase
|
||||
class FilesTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
* Include to test.
|
||||
*/
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
** Test for checkbox.phtml
|
||||
@ -18,7 +19,7 @@
|
||||
* @package PhpMyAdmin-test
|
||||
* @group common.lib-tests
|
||||
*/
|
||||
class PMA_GetCheckboxTest extends PHPUnit_Framework_TestCase
|
||||
class PMA_GetCheckboxTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test for checkbox.phtml
|
||||
|
||||
@ -10,12 +10,14 @@
|
||||
* Include to test.
|
||||
*/
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests basic functionality of dummy dbi driver
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class PMA_DBI_Test extends PHPUnit_Framework_TestCase
|
||||
class PMA_DBI_Test extends TestCase
|
||||
{
|
||||
/**
|
||||
* Configures test parameters.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user