Got rid of the DbalTestCase class

parent 936e7e33
...@@ -4,10 +4,10 @@ namespace Doctrine\Tests\DBAL\Cache; ...@@ -4,10 +4,10 @@ namespace Doctrine\Tests\DBAL\Cache;
use Doctrine\DBAL\Cache\QueryCacheProfile; use Doctrine\DBAL\Cache\QueryCacheProfile;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use function parse_str; use function parse_str;
class QueryCacheProfileTest extends DbalTestCase class QueryCacheProfileTest extends TestCase
{ {
private const LIFETIME = 3600; private const LIFETIME = 3600;
private const CACHE_KEY = 'user_specified_cache_key'; private const CACHE_KEY = 'user_specified_cache_key';
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Configuration;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* Unit tests for the configuration container. * Unit tests for the configuration container.
*/ */
class ConfigurationTest extends DbalTestCase class ConfigurationTest extends TestCase
{ {
/** /**
* The configuration container instance under test. * The configuration container instance under test.
......
...@@ -23,15 +23,15 @@ use Doctrine\DBAL\Logging\EchoSQLLogger; ...@@ -23,15 +23,15 @@ use Doctrine\DBAL\Logging\EchoSQLLogger;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\VersionAwarePlatformDriver; use Doctrine\DBAL\VersionAwarePlatformDriver;
use Doctrine\Tests\DbalTestCase;
use Exception; use Exception;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
/** /**
* @requires extension pdo_mysql * @requires extension pdo_mysql
*/ */
class ConnectionTest extends DbalTestCase class ConnectionTest extends TestCase
{ {
/** @var Connection */ /** @var Connection */
private $connection; private $connection;
......
...@@ -6,14 +6,14 @@ use Doctrine\DBAL\DBALException; ...@@ -6,14 +6,14 @@ use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Driver; use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Driver\DriverException as InnerDriverException; use Doctrine\DBAL\Driver\DriverException as InnerDriverException;
use Doctrine\DBAL\Exception\DriverException; use Doctrine\DBAL\Exception\DriverException;
use Doctrine\Tests\DbalTestCase;
use Exception; use Exception;
use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
use function chr; use function chr;
use function fopen; use function fopen;
use function sprintf; use function sprintf;
class DBALExceptionTest extends DbalTestCase class DBALExceptionTest extends TestCase
{ {
public function testDriverExceptionDuringQueryAcceptsBinaryData() : void public function testDriverExceptionDuringQueryAcceptsBinaryData() : void
{ {
......
...@@ -27,14 +27,14 @@ use Doctrine\DBAL\Exception\UniqueConstraintViolationException; ...@@ -27,14 +27,14 @@ use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema\AbstractSchemaManager; use Doctrine\DBAL\Schema\AbstractSchemaManager;
use Doctrine\DBAL\VersionAwarePlatformDriver; use Doctrine\DBAL\VersionAwarePlatformDriver;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use ReflectionProperty; use ReflectionProperty;
use function array_merge; use function array_merge;
use function get_class; use function get_class;
use function sprintf; use function sprintf;
abstract class AbstractDriverTest extends DbalTestCase abstract class AbstractDriverTest extends TestCase
{ {
public const EXCEPTION_CONNECTION = ConnectionException::class; public const EXCEPTION_CONNECTION = ConnectionException::class;
public const EXCEPTION_CONSTRAINT_VIOLATION = ConstraintViolationException::class; public const EXCEPTION_CONSTRAINT_VIOLATION = ConstraintViolationException::class;
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
namespace Doctrine\Tests\DBAL\Driver\IBMDB2; namespace Doctrine\Tests\DBAL\Driver\IBMDB2;
use Doctrine\DBAL\Driver\IBMDB2\DB2Connection; use Doctrine\DBAL\Driver\IBMDB2\DB2Connection;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function extension_loaded; use function extension_loaded;
class DB2ConnectionTest extends DbalTestCase class DB2ConnectionTest extends TestCase
{ {
/** /**
* The ibm_db2 driver connection mock under test. * The ibm_db2 driver connection mock under test.
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
namespace Doctrine\Tests\DBAL\Driver\OCI8; namespace Doctrine\Tests\DBAL\Driver\OCI8;
use Doctrine\DBAL\Driver\OCI8\OCI8Connection; use Doctrine\DBAL\Driver\OCI8\OCI8Connection;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function extension_loaded; use function extension_loaded;
class OCI8ConnectionTest extends DbalTestCase class OCI8ConnectionTest extends TestCase
{ {
/** /**
* The oci8 driver connection mock under test. * The oci8 driver connection mock under test.
......
...@@ -5,11 +5,11 @@ namespace Doctrine\Tests\DBAL\Driver\OCI8; ...@@ -5,11 +5,11 @@ namespace Doctrine\Tests\DBAL\Driver\OCI8;
use Doctrine\DBAL\Driver\OCI8\OCI8Connection; use Doctrine\DBAL\Driver\OCI8\OCI8Connection;
use Doctrine\DBAL\Driver\OCI8\OCI8Exception; use Doctrine\DBAL\Driver\OCI8\OCI8Exception;
use Doctrine\DBAL\Driver\OCI8\OCI8Statement; use Doctrine\DBAL\Driver\OCI8\OCI8Statement;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use ReflectionProperty; use ReflectionProperty;
use function extension_loaded; use function extension_loaded;
class OCI8StatementTest extends DbalTestCase class OCI8StatementTest extends TestCase
{ {
protected function setUp() : void protected function setUp() : void
{ {
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
namespace Doctrine\Tests\DBAL\Driver; namespace Doctrine\Tests\DBAL\Driver;
use Doctrine\DBAL\Driver\PDOException; use Doctrine\DBAL\Driver\PDOException;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
/** /**
* @requires extension pdo * @requires extension pdo
*/ */
class PDOExceptionTest extends DbalTestCase class PDOExceptionTest extends TestCase
{ {
public const ERROR_CODE = 666; public const ERROR_CODE = 666;
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
namespace Doctrine\Tests\DBAL\Driver\SQLAnywhere; namespace Doctrine\Tests\DBAL\Driver\SQLAnywhere;
use Doctrine\DBAL\Driver\SQLAnywhere\SQLAnywhereConnection; use Doctrine\DBAL\Driver\SQLAnywhere\SQLAnywhereConnection;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function extension_loaded; use function extension_loaded;
class SQLAnywhereConnectionTest extends DbalTestCase class SQLAnywhereConnectionTest extends TestCase
{ {
/** /**
* The sqlanywhere driver connection mock under test. * The sqlanywhere driver connection mock under test.
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
namespace Doctrine\Tests\DBAL\Driver\SQLSrv; namespace Doctrine\Tests\DBAL\Driver\SQLSrv;
use Doctrine\DBAL\Driver\SQLSrv\SQLSrvConnection; use Doctrine\DBAL\Driver\SQLSrv\SQLSrvConnection;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function extension_loaded; use function extension_loaded;
class SQLSrvConnectionTest extends DbalTestCase class SQLSrvConnectionTest extends TestCase
{ {
/** /**
* The sqlsrv driver connection mock under test. * The sqlsrv driver connection mock under test.
......
...@@ -10,13 +10,13 @@ use Doctrine\DBAL\Driver\SQLSrv\SQLSrvStatement; ...@@ -10,13 +10,13 @@ use Doctrine\DBAL\Driver\SQLSrv\SQLSrvStatement;
use Doctrine\DBAL\Driver\Statement; use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Driver\StatementIterator; use Doctrine\DBAL\Driver\StatementIterator;
use Doctrine\DBAL\Portability\Statement as PortabilityStatement; use Doctrine\DBAL\Portability\Statement as PortabilityStatement;
use Doctrine\Tests\DbalTestCase;
use IteratorAggregate; use IteratorAggregate;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Traversable; use Traversable;
use function extension_loaded; use function extension_loaded;
class StatementIteratorTest extends DbalTestCase class StatementIteratorTest extends TestCase
{ {
/** /**
* @dataProvider statementProvider() * @dataProvider statementProvider()
......
...@@ -11,13 +11,13 @@ use Doctrine\DBAL\Driver\PDOSqlite\Driver as PDOSqliteDriver; ...@@ -11,13 +11,13 @@ use Doctrine\DBAL\Driver\PDOSqlite\Driver as PDOSqliteDriver;
use Doctrine\DBAL\Driver\SQLSrv\Driver as SQLSrvDriver; use Doctrine\DBAL\Driver\SQLSrv\Driver as SQLSrvDriver;
use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
use function get_class; use function get_class;
use function in_array; use function in_array;
use function is_array; use function is_array;
class DriverManagerTest extends DbalTestCase class DriverManagerTest extends TestCase
{ {
public function testCheckParams() : void public function testCheckParams() : void
{ {
......
...@@ -6,9 +6,9 @@ use Doctrine\DBAL\Connection; ...@@ -6,9 +6,9 @@ use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Event\ConnectionEventArgs; use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Event\Listeners\MysqlSessionInit; use Doctrine\DBAL\Event\Listeners\MysqlSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
class MysqlSessionInitTest extends DbalTestCase class MysqlSessionInitTest extends TestCase
{ {
public function testPostConnect() : void public function testPostConnect() : void
{ {
......
...@@ -6,10 +6,10 @@ use Doctrine\DBAL\Connection; ...@@ -6,10 +6,10 @@ use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Event\ConnectionEventArgs; use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Event\Listeners\OracleSessionInit; use Doctrine\DBAL\Event\Listeners\OracleSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use function sprintf; use function sprintf;
class OracleSessionInitTest extends DbalTestCase class OracleSessionInitTest extends TestCase
{ {
public function testPostConnect() : void public function testPostConnect() : void
{ {
......
...@@ -6,12 +6,12 @@ use Doctrine\DBAL\Connection; ...@@ -6,12 +6,12 @@ use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Event\ConnectionEventArgs; use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Event\Listeners\SQLSessionInit; use Doctrine\DBAL\Event\Listeners\SQLSessionInit;
use Doctrine\DBAL\Events; use Doctrine\DBAL\Events;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* @group DBAL-169 * @group DBAL-169
*/ */
class SQLSessionInitTest extends DbalTestCase class SQLSessionInitTest extends TestCase
{ {
public function testPostConnect() : void public function testPostConnect() : void
{ {
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
namespace Doctrine\Tests\DBAL\Logging; namespace Doctrine\Tests\DBAL\Logging;
use Doctrine\DBAL\Logging\DebugStack; use Doctrine\DBAL\Logging\DebugStack;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
class DebugStackTest extends DbalTestCase class DebugStackTest extends TestCase
{ {
/** @var DebugStack */ /** @var DebugStack */
private $logger; private $logger;
......
...@@ -15,14 +15,14 @@ use Doctrine\DBAL\Schema\Index; ...@@ -15,14 +15,14 @@ use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use Doctrine\Tests\Types\CommentedType; use Doctrine\Tests\Types\CommentedType;
use PHPUnit\Framework\TestCase;
use function get_class; use function get_class;
use function implode; use function implode;
use function sprintf; use function sprintf;
use function str_repeat; use function str_repeat;
abstract class AbstractPlatformTestCase extends DbalTestCase abstract class AbstractPlatformTestCase extends TestCase
{ {
/** @var AbstractPlatform */ /** @var AbstractPlatform */
protected $platform; protected $platform;
......
...@@ -5,9 +5,9 @@ namespace Doctrine\Tests\DBAL\Platforms; ...@@ -5,9 +5,9 @@ namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\Platforms\Keywords\MySQLKeywords; use Doctrine\DBAL\Platforms\Keywords\MySQLKeywords;
use Doctrine\DBAL\Platforms\Keywords\ReservedKeywordsValidator; use Doctrine\DBAL\Platforms\Keywords\ReservedKeywordsValidator;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
class ReservedKeywordsValidatorTest extends DbalTestCase class ReservedKeywordsValidatorTest extends TestCase
{ {
/** @var ReservedKeywordsValidator */ /** @var ReservedKeywordsValidator */
private $validator; private $validator;
......
...@@ -7,12 +7,12 @@ use Doctrine\DBAL\FetchMode; ...@@ -7,12 +7,12 @@ use Doctrine\DBAL\FetchMode;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Portability\Connection; use Doctrine\DBAL\Portability\Connection;
use Doctrine\DBAL\Portability\Statement; use Doctrine\DBAL\Portability\Statement;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use ReflectionProperty; use ReflectionProperty;
use function iterator_to_array; use function iterator_to_array;
class StatementTest extends DbalTestCase class StatementTest extends TestCase
{ {
/** @var Connection|MockObject */ /** @var Connection|MockObject */
protected $conn; protected $conn;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
namespace Doctrine\Tests\DBAL\Query\Expression; namespace Doctrine\Tests\DBAL\Query\Expression;
use Doctrine\DBAL\Query\Expression\CompositeExpression; use Doctrine\DBAL\Query\Expression\CompositeExpression;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
class CompositeExpressionTest extends DbalTestCase class CompositeExpressionTest extends TestCase
{ {
public function testCount() : void public function testCount() : void
{ {
......
...@@ -5,12 +5,12 @@ namespace Doctrine\Tests\DBAL\Query\Expression; ...@@ -5,12 +5,12 @@ namespace Doctrine\Tests\DBAL\Query\Expression;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Query\Expression\CompositeExpression; use Doctrine\DBAL\Query\Expression\CompositeExpression;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder; use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
class ExpressionBuilderTest extends DbalTestCase class ExpressionBuilderTest extends TestCase
{ {
/** @var ExpressionBuilder */ /** @var ExpressionBuilder */
protected $expr; protected $expr;
......
...@@ -7,12 +7,12 @@ use Doctrine\DBAL\ParameterType; ...@@ -7,12 +7,12 @@ use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder; use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
use Doctrine\DBAL\Query\QueryBuilder; use Doctrine\DBAL\Query\QueryBuilder;
use Doctrine\DBAL\Query\QueryException; use Doctrine\DBAL\Query\QueryException;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* @group DBAL-12 * @group DBAL-12
*/ */
class QueryBuilderTest extends DbalTestCase class QueryBuilderTest extends TestCase
{ {
/** @var Connection */ /** @var Connection */
protected $conn; protected $conn;
......
...@@ -6,13 +6,13 @@ use Doctrine\DBAL\Connection; ...@@ -6,13 +6,13 @@ use Doctrine\DBAL\Connection;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\SQLParserUtils; use Doctrine\DBAL\SQLParserUtils;
use Doctrine\DBAL\SQLParserUtilsException; use Doctrine\DBAL\SQLParserUtilsException;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
/** /**
* @group DBAL-78 * @group DBAL-78
* @group DDC-1372 * @group DDC-1372
*/ */
class SQLParserUtilsTest extends DbalTestCase class SQLParserUtilsTest extends TestCase
{ {
/** /**
* @return mixed[][] * @return mixed[][]
......
...@@ -4,9 +4,9 @@ namespace Doctrine\Tests\DBAL\Schema; ...@@ -4,9 +4,9 @@ namespace Doctrine\Tests\DBAL\Schema;
use Doctrine\DBAL\Schema\Sequence; use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
class SequenceTest extends DbalTestCase class SequenceTest extends TestCase
{ {
/** /**
* @group DDC-1657 * @group DDC-1657
......
...@@ -11,11 +11,11 @@ use Doctrine\DBAL\Schema\Index; ...@@ -11,11 +11,11 @@ use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\SchemaException; use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use function array_shift; use function array_shift;
use function current; use function current;
class TableTest extends DbalTestCase class TableTest extends TestCase
{ {
public function testCreateWithInvalidTableName() : void public function testCreateWithInvalidTableName() : void
{ {
......
...@@ -11,11 +11,11 @@ use Doctrine\DBAL\Driver\Statement as DriverStatement; ...@@ -11,11 +11,11 @@ use Doctrine\DBAL\Driver\Statement as DriverStatement;
use Doctrine\DBAL\Logging\SQLLogger; use Doctrine\DBAL\Logging\SQLLogger;
use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\ParameterType;
use Doctrine\DBAL\Statement; use Doctrine\DBAL\Statement;
use Doctrine\Tests\DbalTestCase;
use Exception; use Exception;
use PDOStatement; use PDOStatement;
use PHPUnit\Framework\TestCase;
class StatementTest extends DbalTestCase class StatementTest extends TestCase
{ {
/** @var Connection */ /** @var Connection */
private $conn; private $conn;
......
...@@ -8,13 +8,13 @@ use DateTime; ...@@ -8,13 +8,13 @@ use DateTime;
use DateTimeImmutable; use DateTimeImmutable;
use DateTimeZone; use DateTimeZone;
use Doctrine\DBAL\Tools\Dumper; use Doctrine\DBAL\Tools\Dumper;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
use function print_r; use function print_r;
use function strpos; use function strpos;
use function substr; use function substr;
class DumperTest extends DbalTestCase class DumperTest extends TestCase
{ {
public function testExportObject() : void public function testExportObject() : void
{ {
......
...@@ -6,11 +6,11 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -6,11 +6,11 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ArrayType; use Doctrine\DBAL\Types\ArrayType;
use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function serialize; use function serialize;
class ArrayTest extends DbalTestCase class ArrayTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -8,13 +8,13 @@ use Doctrine\DBAL\Types\BinaryType; ...@@ -8,13 +8,13 @@ use Doctrine\DBAL\Types\BinaryType;
use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types; use Doctrine\DBAL\Types\Types;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function base64_encode; use function base64_encode;
use function fopen; use function fopen;
use function stream_get_contents; use function stream_get_contents;
class BinaryTest extends DbalTestCase class BinaryTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
protected $platform; protected $platform;
......
...@@ -5,14 +5,14 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,14 +5,14 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\BlobType; use Doctrine\DBAL\Types\BlobType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function base64_encode; use function base64_encode;
use function chr; use function chr;
use function fopen; use function fopen;
use function stream_get_contents; use function stream_get_contents;
class BlobTest extends DbalTestCase class BlobTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
protected $platform; protected $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\BooleanType; use Doctrine\DBAL\Types\BooleanType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class BooleanTest extends DbalTestCase class BooleanTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -8,11 +8,11 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -8,11 +8,11 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\DateIntervalType; use Doctrine\DBAL\Types\DateIntervalType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
final class DateIntervalTest extends DbalTestCase final class DateIntervalTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\DecimalType; use Doctrine\DBAL\Types\DecimalType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class DecimalTest extends DbalTestCase class DecimalTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\FloatType; use Doctrine\DBAL\Types\FloatType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class FloatTest extends DbalTestCase class FloatTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\GuidType; use Doctrine\DBAL\Types\GuidType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class GuidTypeTest extends DbalTestCase class GuidTypeTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\IntegerType; use Doctrine\DBAL\Types\IntegerType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class IntegerTest extends DbalTestCase class IntegerTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -7,13 +7,13 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -7,13 +7,13 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\JsonArrayType; use Doctrine\DBAL\Types\JsonArrayType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types; use Doctrine\DBAL\Types\Types;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function base64_encode; use function base64_encode;
use function fopen; use function fopen;
use function json_encode; use function json_encode;
class JsonArrayTest extends DbalTestCase class JsonArrayTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
protected $platform; protected $platform;
......
...@@ -8,13 +8,13 @@ use Doctrine\DBAL\Types\ConversionException; ...@@ -8,13 +8,13 @@ use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\JsonType; use Doctrine\DBAL\Types\JsonType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types; use Doctrine\DBAL\Types\Types;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use function base64_encode; use function base64_encode;
use function fopen; use function fopen;
use function json_encode; use function json_encode;
class JsonTest extends DbalTestCase class JsonTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
protected $platform; protected $platform;
......
...@@ -6,12 +6,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -6,12 +6,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\ObjectType; use Doctrine\DBAL\Types\ObjectType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use stdClass; use stdClass;
use function serialize; use function serialize;
class ObjectTest extends DbalTestCase class ObjectTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\SmallIntType; use Doctrine\DBAL\Types\SmallIntType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class SmallIntTest extends DbalTestCase class SmallIntTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types; ...@@ -5,10 +5,10 @@ namespace Doctrine\Tests\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\StringType; use Doctrine\DBAL\Types\StringType;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class StringTest extends DbalTestCase class StringTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -7,10 +7,10 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -7,10 +7,10 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ConversionException; use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\VarDateTimeType; use Doctrine\DBAL\Types\VarDateTimeType;
use Doctrine\Tests\DbalTestCase;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
class VarDateTimeTest extends DbalTestCase class VarDateTimeTest extends TestCase
{ {
/** @var AbstractPlatform|MockObject */ /** @var AbstractPlatform|MockObject */
private $platform; private $platform;
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
use Doctrine\DBAL\Driver\OCI8\OCI8Statement; use Doctrine\DBAL\Driver\OCI8\OCI8Statement;
use Doctrine\Tests\DbalTestCase; use PHPUnit\Framework\TestCase;
class UtilTest extends DbalTestCase class UtilTest extends TestCase
{ {
/** /**
* @return mixed[][] * @return mixed[][]
......
...@@ -6,6 +6,7 @@ use Doctrine\DBAL\Connection; ...@@ -6,6 +6,7 @@ use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Logging\DebugStack; use Doctrine\DBAL\Logging\DebugStack;
use Exception; use Exception;
use PHPUnit\Framework\AssertionFailedError; use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\TestCase;
use Throwable; use Throwable;
use const PHP_EOL; use const PHP_EOL;
use function array_map; use function array_map;
...@@ -18,7 +19,7 @@ use function is_scalar; ...@@ -18,7 +19,7 @@ use function is_scalar;
use function strpos; use function strpos;
use function var_export; use function var_export;
abstract class DbalFunctionalTestCase extends DbalTestCase abstract class DbalFunctionalTestCase extends TestCase
{ {
/** /**
* Shared connection when a TestCase is run alone (outside of it's functional suite) * Shared connection when a TestCase is run alone (outside of it's functional suite)
......
<?php
namespace Doctrine\Tests;
use PHPUnit\Framework\TestCase;
/**
* Base testcase class for all dbal testcases.
*/
abstract class DbalTestCase extends TestCase
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment