Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 21, 2020
1 parent 8eff8d2 commit ab5d02d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Tests/Transport/PostgreSqlConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Transport;

use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer;
use Doctrine\DBAL\Schema\Table;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\PostgreSqlConnection;
Expand All @@ -26,10 +25,9 @@ public function testSerialize()
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionMessage('Cannot serialize '.PostgreSqlConnection::class);

$schemaSynchronizer = $this->createMock(SchemaSynchronizer::class);
$driverConnection = $this->createMock(\Doctrine\DBAL\Connection::class);

$connection = new PostgreSqlConnection([], $driverConnection, $schemaSynchronizer);
$connection = new PostgreSqlConnection([], $driverConnection);
serialize($connection);
}

Expand All @@ -38,10 +36,9 @@ public function testUnserialize()
$this->expectException(\BadMethodCallException::class);
$this->expectExceptionMessage('Cannot unserialize '.PostgreSqlConnection::class);

$schemaSynchronizer = $this->createMock(SchemaSynchronizer::class);
$driverConnection = $this->createMock(\Doctrine\DBAL\Connection::class);

$connection = new PostgreSqlConnection([], $driverConnection, $schemaSynchronizer);
$connection = new PostgreSqlConnection([], $driverConnection);
$connection->__wakeup();
}

Expand Down

0 comments on commit ab5d02d

Please sign in to comment.