Skip to content

Commit

Permalink
use assertion instead of inline doccomment
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Oct 25, 2020
1 parent 3e22870 commit 31dabf6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Doctrine\DBAL\Types\Type;
use UnexpectedValueException;

use function assert;
use function sprintf;

abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCase
Expand Down Expand Up @@ -457,8 +458,8 @@ public function testConvertBooleanAsLiteralStrings(

public function testConvertBooleanAsLiteralIntegers(): void
{
/** @var PostgreSqlPlatform $platform */
$platform = $this->createPlatform();
assert($platform instanceof PostgreSqlPlatform);
$platform->setUseBooleanTrueFalseStrings(false);

self::assertEquals(1, $platform->convertBooleans(true));
Expand Down Expand Up @@ -486,8 +487,8 @@ public function testConvertBooleanAsDatabaseValueStrings(

public function testConvertBooleanAsDatabaseValueIntegers(): void
{
/** @var PostgreSqlPlatform $platform */
$platform = $this->createPlatform();
assert($platform instanceof PostgreSqlPlatform);
$platform->setUseBooleanTrueFalseStrings(false);

self::assertSame(1, $platform->convertBooleansToDatabaseValue(true));
Expand Down

0 comments on commit 31dabf6

Please sign in to comment.