Use AbstractTestCase on all unit tests
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
8624fbbe97
commit
8ef5143901
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Bookmark;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for Bookmark class
|
||||
*/
|
||||
class BookmarkTest extends TestCase
|
||||
class BookmarkTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
@ -8,13 +8,13 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\BrowseForeigners;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\BrowseForeigners
|
||||
*/
|
||||
class BrowseForeignersTest extends TestCase
|
||||
class BrowseForeignersTest extends AbstractTestCase
|
||||
{
|
||||
private $browseForeigners;
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Types;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PhpMyAdmin\Message;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use function array_slice;
|
||||
use function ceil;
|
||||
@ -22,7 +22,7 @@ use function ceil;
|
||||
/**
|
||||
* tests for PhpMyAdmin\CentralColumns
|
||||
*/
|
||||
class CentralColumnsTest extends TestCase
|
||||
class CentralColumnsTest extends AbstractTestCase
|
||||
{
|
||||
private $centralColumns;
|
||||
|
||||
|
||||
@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Charsets;
|
||||
|
||||
use PhpMyAdmin\Charsets\Charset;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class CharsetTest extends TestCase
|
||||
class CharsetTest extends AbstractTestCase
|
||||
{
|
||||
public function testFromServer(): void
|
||||
{
|
||||
|
||||
@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Charsets;
|
||||
|
||||
use PhpMyAdmin\Charsets\Collation;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class CollationTest extends TestCase
|
||||
class CollationTest extends AbstractTestCase
|
||||
{
|
||||
public function testFromServer(): void
|
||||
{
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Charsets;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for MySQL Charsets
|
||||
*/
|
||||
class CharsetsTest extends TestCase
|
||||
class CharsetsTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\CheckUserPrivileges;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\CheckUserPrivileges
|
||||
*/
|
||||
class CheckUserPrivilegesTest extends TestCase
|
||||
class CheckUserPrivilegesTest extends AbstractTestCase
|
||||
{
|
||||
/** @var CheckUserPrivileges */
|
||||
private $checkUserPrivileges;
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests\Config;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Config\FormDisplayTemplate;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for FormDisplayTemplate
|
||||
*/
|
||||
class FormDisplayTemplateTest extends TestCase
|
||||
class FormDisplayTemplateTest extends AbstractTestCase
|
||||
{
|
||||
/** @var FormDisplayTemplate */
|
||||
protected $formDisplayTemplate;
|
||||
|
||||
@ -13,12 +13,12 @@ use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for BinlogController class
|
||||
*/
|
||||
class BinlogControllerTest extends TestCase
|
||||
class BinlogControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -10,12 +10,12 @@ use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Controllers\Server\CollationsController;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for CollationsController class
|
||||
*/
|
||||
class CollationsControllerTest extends TestCase
|
||||
class CollationsControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -14,14 +14,14 @@ use PhpMyAdmin\RelationCleanup;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use stdClass;
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* Tests for DatabasesController class
|
||||
*/
|
||||
class DatabasesControllerTest extends TestCase
|
||||
class DatabasesControllerTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -11,14 +11,14 @@ use PhpMyAdmin\Controllers\Server\EnginesController;
|
||||
use PhpMyAdmin\Html\MySQLDocumentation;
|
||||
use PhpMyAdmin\StorageEngine;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPStan\Testing\TestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
/**
|
||||
* Tests for EnginesController class
|
||||
*/
|
||||
class EnginesControllerTest extends TestCase
|
||||
class EnginesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -12,12 +12,12 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Plugins;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PluginsController class
|
||||
*/
|
||||
class PluginsControllerTest extends TestCase
|
||||
class PluginsControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -11,10 +11,10 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||
|
||||
class AdvisorControllerTest extends TestCase
|
||||
class AdvisorControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Response */
|
||||
private $response;
|
||||
|
||||
@ -13,9 +13,9 @@ use PhpMyAdmin\Server\Status\Monitor;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class MonitorControllerTest extends TestCase
|
||||
class MonitorControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Data */
|
||||
private $data;
|
||||
|
||||
@ -13,10 +13,10 @@ use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
class ProcessesControllerTest extends TestCase
|
||||
class ProcessesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Data */
|
||||
private $data;
|
||||
|
||||
@ -13,11 +13,11 @@ use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function array_sum;
|
||||
use function htmlspecialchars;
|
||||
|
||||
class QueriesControllerTest extends TestCase
|
||||
class QueriesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Data */
|
||||
private $data;
|
||||
|
||||
@ -14,9 +14,9 @@ use PhpMyAdmin\ReplicationGui;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class StatusControllerTest extends TestCase
|
||||
class StatusControllerTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -12,9 +12,9 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\Status\Data;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class VariablesControllerTest extends TestCase
|
||||
class VariablesControllerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Data */
|
||||
private $data;
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\Html\Generator;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use Williamdes\MariaDBMySQLKBS\Search as KBSearch;
|
||||
use Williamdes\MariaDBMySQLKBS\SlimData as KBSlimData;
|
||||
@ -23,7 +23,7 @@ use function str_replace;
|
||||
/**
|
||||
* Tests for VariablesController class
|
||||
*/
|
||||
class VariablesControllerTest extends TestCase
|
||||
class VariablesControllerTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -9,9 +9,9 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Types;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class FindReplaceControllerTest extends TestCase
|
||||
class FindReplaceControllerTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -11,12 +11,12 @@ use PhpMyAdmin\Controllers\TransformationOverviewController;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\Response;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for TransformationOverviewController class
|
||||
*/
|
||||
class TransformationOverviewControllerTest extends TestCase
|
||||
class TransformationOverviewControllerTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\CreateAddField;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* This class is for testing PhpMyAdmin\CreateAddField methods
|
||||
*/
|
||||
class CreateAddFieldTest extends TestCase
|
||||
class CreateAddFieldTest extends AbstractTestCase
|
||||
{
|
||||
/** @var CreateAddField */
|
||||
private $createAddField;
|
||||
|
||||
@ -9,12 +9,12 @@ namespace PhpMyAdmin\Tests\Database\Designer;
|
||||
use PhpMyAdmin\Database\Designer\Common;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Database\Designer\Common
|
||||
*/
|
||||
class CommonTest extends TestCase
|
||||
class CommonTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Common */
|
||||
private $designerCommon;
|
||||
|
||||
@ -10,13 +10,13 @@ use PhpMyAdmin\Database\Designer;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Database\Designer
|
||||
*/
|
||||
class DesignerTest extends TestCase
|
||||
class DesignerTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Designer */
|
||||
private $designer;
|
||||
|
||||
@ -9,9 +9,9 @@ use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Database\Events;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class EventsTest extends TestCase
|
||||
class EventsTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Events */
|
||||
private $events;
|
||||
|
||||
@ -10,9 +10,9 @@ use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Types;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class RoutinesTest extends TestCase
|
||||
class RoutinesTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Routines */
|
||||
private $routines;
|
||||
|
||||
@ -8,9 +8,9 @@ use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Database\Triggers;
|
||||
use PhpMyAdmin\Response;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class TriggersTest extends TestCase
|
||||
class TriggersTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Triggers */
|
||||
private $triggers;
|
||||
|
||||
@ -6,12 +6,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Tests\Dbal;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests basic functionality of dummy dbi driver
|
||||
*/
|
||||
class DbiDummyTest extends TestCase
|
||||
class DbiDummyTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Configures test parameters.
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Dbal;
|
||||
use mysqli;
|
||||
use mysqli_result;
|
||||
use PhpMyAdmin\Dbal\DbiMysqli;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use const MYSQLI_ASSOC;
|
||||
use const MYSQLI_BOTH;
|
||||
use const MYSQLI_NUM;
|
||||
@ -17,7 +17,7 @@ use const MYSQLI_NUM;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Dbi\DbiMysqli class
|
||||
*/
|
||||
class DbiMysqliTest extends TestCase
|
||||
class DbiMysqliTest extends AbstractTestCase
|
||||
{
|
||||
/** @var DbiMysqli */
|
||||
protected $object;
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests\Display;
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Display\ChangePassword;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
/**
|
||||
@ -17,7 +17,7 @@ use function htmlspecialchars;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\Display\ChangePassword functions
|
||||
*/
|
||||
class ChangePasswordTest extends TestCase
|
||||
class ChangePasswordTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for setUp
|
||||
|
||||
@ -9,14 +9,14 @@ namespace PhpMyAdmin\Tests\Display;
|
||||
use PhpMyAdmin\Display\CreateTable;
|
||||
use PhpMyAdmin\Html\Generator;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Display\CreateTableTest class
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\Display\CreateTable methods
|
||||
*/
|
||||
class CreateTableTest extends TestCase
|
||||
class CreateTableTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for setUp
|
||||
|
||||
@ -8,7 +8,7 @@ namespace PhpMyAdmin\Tests\Display;
|
||||
|
||||
use PhpMyAdmin\Display\Error;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use Throwable;
|
||||
use Twig_Error_Loader;
|
||||
use Twig_Error_Runtime;
|
||||
@ -19,7 +19,7 @@ use Twig_Error_Syntax;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\Display\Error functions
|
||||
*/
|
||||
class ErrorTest extends TestCase
|
||||
class ErrorTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for Error::display
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\Display\Export;
|
||||
use PhpMyAdmin\Plugins;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
/**
|
||||
@ -19,7 +19,7 @@ use function htmlspecialchars;
|
||||
*
|
||||
* @group large
|
||||
*/
|
||||
class ExportTest extends TestCase
|
||||
class ExportTest extends AbstractTestCase
|
||||
{
|
||||
private $export;
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Encoding;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use const PHP_INT_SIZE;
|
||||
use function fclose;
|
||||
use function file_get_contents;
|
||||
@ -21,7 +21,7 @@ use function unlink;
|
||||
/**
|
||||
* Tests for Charset Conversions
|
||||
*/
|
||||
class EncodingTest extends TestCase
|
||||
class EncodingTest extends AbstractTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@ -7,7 +7,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PDO;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use Throwable;
|
||||
use const PHP_VERSION;
|
||||
use function constant;
|
||||
@ -17,7 +17,7 @@ use function version_compare;
|
||||
/**
|
||||
* Environment tests
|
||||
*/
|
||||
class EnvironmentTest extends TestCase
|
||||
class EnvironmentTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Tests PHP version
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\ErrorReport;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Utils\HttpRequest;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use const JSON_PRETTY_PRINT;
|
||||
use const JSON_UNESCAPED_SLASHES;
|
||||
@ -25,7 +25,7 @@ use function phpversion;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\ErrorReport methods
|
||||
*/
|
||||
class ErrorReportTest extends TestCase
|
||||
class ErrorReportTest extends AbstractTestCase
|
||||
{
|
||||
/** @var ErrorReport $errorReport */
|
||||
private $errorReport;
|
||||
|
||||
@ -8,7 +8,7 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Export;
|
||||
use PhpMyAdmin\Plugins\Export\ExportPhparray;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\ExportTest class
|
||||
@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
|
||||
*
|
||||
* @group large
|
||||
*/
|
||||
class ExportTest extends TestCase
|
||||
class ExportTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Export */
|
||||
private $export;
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\FileListing;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function array_values;
|
||||
use function extension_loaded;
|
||||
|
||||
class FileListingTest extends TestCase
|
||||
class FileListingTest extends AbstractTestCase
|
||||
{
|
||||
/** @var FileListing $fileListing */
|
||||
private $fileListing;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\OutputBuffering;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for bookmark.lib.php
|
||||
*/
|
||||
class FilesTest extends TestCase
|
||||
class FilesTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for dynamic javascript files
|
||||
|
||||
@ -14,12 +14,12 @@ use PhpMyAdmin\Gis\GisLineString;
|
||||
use PhpMyAdmin\Gis\GisMultiPoint;
|
||||
use PhpMyAdmin\Gis\GisPoint;
|
||||
use PhpMyAdmin\Gis\GisGeometryCollection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Test class for PhpMyAdmin\Gis\GisFactory
|
||||
*/
|
||||
class GisFactoryTest extends TestCase
|
||||
class GisFactoryTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test factory method
|
||||
|
||||
@ -6,13 +6,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function imagesx;
|
||||
|
||||
/**
|
||||
* Abstract parent class for all Gis<Geom_type> test classes
|
||||
*/
|
||||
abstract class GisGeomTestCase extends TestCase
|
||||
abstract class GisGeomTestCase extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PhpMyAdmin\Gis\GisGeometryCollection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use TCPDF;
|
||||
use function function_exists;
|
||||
use function imagecreatetruecolor;
|
||||
@ -18,7 +18,7 @@ use function preg_match;
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Gis\GisGeometryCollection class
|
||||
*/
|
||||
class GisGeometryCollectionTest extends TestCase
|
||||
class GisGeometryCollectionTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -7,13 +7,13 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PhpMyAdmin\Gis\GisGeometry;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Gis\GisGeometry class
|
||||
*/
|
||||
class GisGeometryTest extends TestCase
|
||||
class GisGeometryTest extends AbstractTestCase
|
||||
{
|
||||
/** @access protected */
|
||||
protected $object;
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
namespace PhpMyAdmin\Tests\Gis;
|
||||
|
||||
use PhpMyAdmin\Gis\GisVisualization;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
|
||||
class GisVisualizationTest extends TestCase
|
||||
class GisVisualizationTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Call private functions by setting visibility to public.
|
||||
|
||||
@ -11,7 +11,7 @@ use PhpMyAdmin\Html\Generator;
|
||||
use PhpMyAdmin\Import;
|
||||
use PhpMyAdmin\SqlParser\Parser;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use const PHP_INT_MAX;
|
||||
use function implode;
|
||||
use function sprintf;
|
||||
@ -20,7 +20,7 @@ use function time;
|
||||
/**
|
||||
* Tests for import functions
|
||||
*/
|
||||
class ImportTest extends TestCase
|
||||
class ImportTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Import $import */
|
||||
private $import;
|
||||
|
||||
@ -15,7 +15,7 @@ use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Message;
|
||||
use PhpMyAdmin\Scripts;
|
||||
use PhpMyAdmin\Header;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use ReflectionProperty;
|
||||
use stdClass;
|
||||
@ -27,7 +27,7 @@ use function sprintf;
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class InsertEditTest extends TestCase
|
||||
class InsertEditTest extends AbstractTestCase
|
||||
{
|
||||
private $insertEdit;
|
||||
|
||||
|
||||
@ -8,14 +8,14 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Core;
|
||||
use PhpMyAdmin\IpAllowDeny;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\IpAllowDenyTest class
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\IpAllowDeny
|
||||
*/
|
||||
class IpAllowDenyTest extends TestCase
|
||||
class IpAllowDenyTest extends AbstractTestCase
|
||||
{
|
||||
/** @var IpAllowDeny */
|
||||
private $ipAllowDeny;
|
||||
|
||||
@ -7,13 +7,13 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Mime;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function chr;
|
||||
|
||||
/**
|
||||
* Test for mime detection.
|
||||
*/
|
||||
class MimeTest extends TestCase
|
||||
class MimeTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for Mime::detect
|
||||
|
||||
@ -14,7 +14,7 @@ use PhpMyAdmin\Transformations;
|
||||
use PhpMyAdmin\Types;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Message;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionClass;
|
||||
use stdClass;
|
||||
use function json_encode;
|
||||
@ -22,7 +22,7 @@ use function json_encode;
|
||||
/**
|
||||
* tests for PhpMyAdmin\Normalization
|
||||
*/
|
||||
class NormalizationTest extends TestCase
|
||||
class NormalizationTest extends AbstractTestCase
|
||||
{
|
||||
private $normalization;
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Response;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ReflectionProperty;
|
||||
use function array_slice;
|
||||
use function call_user_func_array;
|
||||
@ -20,7 +19,7 @@ use function is_int;
|
||||
/**
|
||||
* Base class for phpMyAdmin tests
|
||||
*/
|
||||
class PmaTestCase extends TestCase
|
||||
abstract class PmaTestCase extends AbstractTestCase
|
||||
{
|
||||
/** @var Response|null */
|
||||
protected $restoreInstance = null;
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup class
|
||||
*/
|
||||
class OptionsPropertyMainGroupTest extends TestCase
|
||||
class OptionsPropertyMainGroupTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup class
|
||||
*/
|
||||
class OptionsPropertyRootGroupTest extends TestCase
|
||||
class OptionsPropertyRootGroupTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup class
|
||||
*/
|
||||
class OptionsPropertySubgroupTest extends TestCase
|
||||
class OptionsPropertySubgroupTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -13,12 +13,12 @@ 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;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for *PhpMyAdmin\Properties\PropertyItem class
|
||||
*/
|
||||
class PropertyItemsTest extends TestCase
|
||||
class PropertyItemsTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for PhpMyAdmin\Properties\Options\Items\BoolPropertyItem::getText
|
||||
|
||||
@ -6,14 +6,14 @@ declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
|
||||
use ReflectionProperty;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyGroup class
|
||||
*/
|
||||
class OptionsPropertyGroupTest extends TestCase
|
||||
class OptionsPropertyGroupTest extends AbstractTestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyItem;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyItem class
|
||||
*/
|
||||
class OptionsPropertyItemTest extends TestCase
|
||||
class OptionsPropertyItemTest extends AbstractTestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyOneItem class
|
||||
*/
|
||||
class OptionsPropertyOneItemTest extends TestCase
|
||||
class OptionsPropertyOneItemTest extends AbstractTestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PhpMyAdmin\Properties\Plugins\ImportPluginProperties;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Plugins\ImportPluginProperties class
|
||||
*/
|
||||
class ImportPluginPropertiesTest extends TestCase
|
||||
class ImportPluginPropertiesTest extends AbstractTestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PhpMyAdmin\Properties\Plugins\PluginPropertyItem;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Plugins\PluginPropertyItem class
|
||||
*/
|
||||
class PluginPropertyItemTest extends TestCase
|
||||
class PluginPropertyItemTest extends AbstractTestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Properties;
|
||||
|
||||
use PhpMyAdmin\Properties\PropertyItem;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\PropertyItem class
|
||||
*/
|
||||
class PropertyItemTest extends TestCase
|
||||
class PropertyItemTest extends AbstractTestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ namespace PhpMyAdmin\Tests;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\RelationCleanup;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function array_merge;
|
||||
|
||||
/**
|
||||
@ -17,7 +17,7 @@ use function array_merge;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\RelationCleanup methods
|
||||
*/
|
||||
class RelationCleanupTest extends TestCase
|
||||
class RelationCleanupTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Relation|MockObject */
|
||||
private $relation;
|
||||
|
||||
@ -8,14 +8,14 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Relation
|
||||
*
|
||||
* @group medium
|
||||
*/
|
||||
class RelationTest extends TestCase
|
||||
class RelationTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Relation */
|
||||
private $relation;
|
||||
|
||||
@ -11,14 +11,14 @@ use PhpMyAdmin\Replication;
|
||||
use PhpMyAdmin\ReplicationGui;
|
||||
use PhpMyAdmin\ReplicationInfo;
|
||||
use PhpMyAdmin\Template;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\ReplicationGuiTest class
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\ReplicationGui methods
|
||||
*/
|
||||
class ReplicationGuiTest extends TestCase
|
||||
class ReplicationGuiTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* ReplicationGui instance
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Sanitize;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* Tests for methods in Sanitize class
|
||||
*/
|
||||
class SanitizeTest extends TestCase
|
||||
class SanitizeTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Tests for proper escaping of XSS.
|
||||
|
||||
@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Server;
|
||||
|
||||
use PhpMyAdmin\Server\Plugin;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class PluginTest extends TestCase
|
||||
class PluginTest extends AbstractTestCase
|
||||
{
|
||||
public function testFromState(): Plugin
|
||||
{
|
||||
|
||||
@ -5,9 +5,9 @@ namespace PhpMyAdmin\Tests\Server;
|
||||
|
||||
use PhpMyAdmin\Server\Plugin;
|
||||
use PhpMyAdmin\Server\Plugins;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class PluginsTest extends TestCase
|
||||
class PluginsTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Plugins */
|
||||
private $plugins;
|
||||
|
||||
@ -17,7 +17,7 @@ use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tests\Stubs\DbiDummy;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use stdClass;
|
||||
use function htmlspecialchars;
|
||||
use function implode;
|
||||
@ -27,7 +27,7 @@ use function implode;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\Server\Privileges methods
|
||||
*/
|
||||
class PrivilegesTest extends TestCase
|
||||
class PrivilegesTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Privileges $serverPrivileges */
|
||||
private $serverPrivileges;
|
||||
|
||||
@ -8,14 +8,14 @@ namespace PhpMyAdmin\Tests\Server;
|
||||
|
||||
use PhpMyAdmin\Server\Select;
|
||||
use PhpMyAdmin\Util;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* PhpMyAdmin\Tests\Server\SelectTest class
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\Server\Select methods
|
||||
*/
|
||||
class SelectTest extends TestCase
|
||||
class SelectTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests\Server\SysInfo;
|
||||
|
||||
use PhpMyAdmin\Server\SysInfo\Base;
|
||||
use PhpMyAdmin\Server\SysInfo\SysInfo;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for sysinfo library
|
||||
*/
|
||||
class SysInfoTest extends TestCase
|
||||
class SysInfoTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Test for OS detection
|
||||
|
||||
@ -9,13 +9,13 @@ namespace PhpMyAdmin\Tests\Server;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Server\UserGroups;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Server\UserGroups
|
||||
*/
|
||||
class UserGroupsTest extends TestCase
|
||||
class UserGroupsTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Prepares environment for the test.
|
||||
|
||||
@ -7,12 +7,12 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Setup;
|
||||
|
||||
use PhpMyAdmin\Setup\Index as SetupIndex;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for methods under PhpMyAdmin\Setup\Index
|
||||
*/
|
||||
class IndexTest extends TestCase
|
||||
class IndexTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* SetUp for test cases
|
||||
|
||||
@ -13,7 +13,7 @@ use PhpMyAdmin\Html\MySQLDocumentation;
|
||||
use PhpMyAdmin\SqlQueryForm;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use function htmlspecialchars;
|
||||
*
|
||||
* this class is for testing PhpMyAdmin\SqlQueryForm methods
|
||||
*/
|
||||
class SqlQueryFormTest extends TestCase
|
||||
class SqlQueryFormTest extends AbstractTestCase
|
||||
{
|
||||
/** @var SqlQueryForm */
|
||||
private $sqlQueryForm;
|
||||
|
||||
@ -7,14 +7,14 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Sql;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use ReflectionMethod;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Sql
|
||||
*/
|
||||
class SqlTest extends TestCase
|
||||
class SqlTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Sql */
|
||||
private $sql;
|
||||
|
||||
@ -4,9 +4,9 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests\Table;
|
||||
|
||||
use PhpMyAdmin\Table\Search;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
class SearchTest extends TestCase
|
||||
class SearchTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Search */
|
||||
private $search;
|
||||
|
||||
@ -12,14 +12,14 @@ use PhpMyAdmin\SqlQueryForm;
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\Tracking;
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlspecialchars;
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Tracking
|
||||
*/
|
||||
class TrackingTest extends TestCase
|
||||
class TrackingTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Tracking $tracking */
|
||||
private $tracking;
|
||||
|
||||
@ -8,12 +8,12 @@ namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Transformations;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
|
||||
/**
|
||||
* tests for transformation wrappers
|
||||
*/
|
||||
class TransformationsTest extends TestCase
|
||||
class TransformationsTest extends AbstractTestCase
|
||||
{
|
||||
/** @var Transformations */
|
||||
private $transformations;
|
||||
|
||||
@ -7,13 +7,13 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Url;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PhpMyAdmin\Tests\AbstractTestCase;
|
||||
use function htmlentities;
|
||||
|
||||
/**
|
||||
* Tests for methods in URL class
|
||||
*/
|
||||
class UrlTest extends TestCase
|
||||
class UrlTest extends AbstractTestCase
|
||||
{
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user