Skip to content

Commit

Permalink
Fix CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Sep 24, 2020
1 parent 7ebae7c commit 1a8989f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/Doctrine/Tests/DBAL/Functional/ExternalPDOInstanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Doctrine\Tests\DbalFunctionalTestCase;
use PDO;

use function assert;

class ExternalPDOInstanceTest extends DbalFunctionalTestCase
{
protected function setUp(): void
Expand Down Expand Up @@ -46,13 +48,14 @@ protected function tearDown(): void
{
parent::tearDown();

if ($this->connection->getDriver() instanceof PDOOCIDriver) {
/** @var PDO $pdo */
$pdo = $this->connection->getWrappedConnection();

// revert column names case fix
$pdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
if (! $this->connection->getDriver() instanceof PDOOCIDriver) {
return;
}

// revert column names case fix
$pdo = $this->connection->getWrappedConnection();
assert($pdo instanceof PDO);
$pdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
}

public function testFetchAllWithOneArgument(): void
Expand Down

0 comments on commit 1a8989f

Please sign in to comment.