Remove unneeded assertions

parent f625ea5d
...@@ -15,7 +15,6 @@ use Doctrine\DBAL\Schema\Table; ...@@ -15,7 +15,6 @@ use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\TransactionIsolationLevel; use Doctrine\DBAL\TransactionIsolationLevel;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use function assert;
abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCase abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCase
{ {
...@@ -1086,7 +1085,6 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -1086,7 +1085,6 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
*/ */
public function testGeneratesIdentifierNamesInDefaultConstraintDeclarationSQL(string $table, array $column, string $expectedSql) : void public function testGeneratesIdentifierNamesInDefaultConstraintDeclarationSQL(string $table, array $column, string $expectedSql) : void
{ {
assert($this->platform instanceof SQLServer2012Platform);
self::assertSame($expectedSql, $this->platform->getDefaultConstraintDeclarationSQL($table, $column)); self::assertSame($expectedSql, $this->platform->getDefaultConstraintDeclarationSQL($table, $column));
} }
......
...@@ -18,7 +18,6 @@ use Doctrine\DBAL\Schema\TableDiff; ...@@ -18,7 +18,6 @@ use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\TransactionIsolationLevel; use Doctrine\DBAL\TransactionIsolationLevel;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use function array_walk; use function array_walk;
use function assert;
use function preg_replace; use function preg_replace;
use function sprintf; use function sprintf;
use function strtoupper; use function strtoupper;
...@@ -701,8 +700,6 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -701,8 +700,6 @@ class OraclePlatformTest extends AbstractPlatformTestCase
*/ */
public function testReturnsDropAutoincrementSQL(string $table, array $expectedSql) : void public function testReturnsDropAutoincrementSQL(string $table, array $expectedSql) : void
{ {
assert($this->platform instanceof OraclePlatform);
self::assertSame($expectedSql, $this->platform->getDropAutoincrementSql($table)); self::assertSame($expectedSql, $this->platform->getDropAutoincrementSql($table));
} }
......
...@@ -12,7 +12,6 @@ use Doctrine\DBAL\Schema\Table; ...@@ -12,7 +12,6 @@ use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\TransactionIsolationLevel; use Doctrine\DBAL\TransactionIsolationLevel;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
use function assert;
class SqlitePlatformTest extends AbstractPlatformTestCase class SqlitePlatformTest extends AbstractPlatformTestCase
{ {
...@@ -89,8 +88,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -89,8 +88,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
*/ */
public function testGeneratesTypeDeclarationForTinyIntegers() : void public function testGeneratesTypeDeclarationForTinyIntegers() : void
{ {
assert($this->platform instanceof SqlitePlatform);
self::assertEquals( self::assertEquals(
'TINYINT', 'TINYINT',
$this->platform->getTinyIntTypeDeclarationSQL([]) $this->platform->getTinyIntTypeDeclarationSQL([])
...@@ -121,8 +118,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -121,8 +118,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
*/ */
public function testGeneratesTypeDeclarationForSmallIntegers() : void public function testGeneratesTypeDeclarationForSmallIntegers() : void
{ {
assert($this->platform instanceof SqlitePlatform);
self::assertEquals( self::assertEquals(
'SMALLINT', 'SMALLINT',
$this->platform->getSmallIntTypeDeclarationSQL([]) $this->platform->getSmallIntTypeDeclarationSQL([])
...@@ -157,8 +152,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -157,8 +152,6 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
*/ */
public function testGeneratesTypeDeclarationForMediumIntegers() : void public function testGeneratesTypeDeclarationForMediumIntegers() : void
{ {
assert($this->platform instanceof SqlitePlatform);
self::assertEquals( self::assertEquals(
'MEDIUMINT', 'MEDIUMINT',
$this->platform->getMediumIntTypeDeclarationSQL([]) $this->platform->getMediumIntTypeDeclarationSQL([])
......
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