Remove unneeded assertions

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