fix merge

This commit is contained in:
Christian Flothmann 2020-08-21 14:10:32 +02:00
parent ffd707cf9d
commit 60ce71e593
1 changed files with 2 additions and 5 deletions

View File

@ -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;
@ -26,10 +25,9 @@ class PostgreSqlConnectionTest extends TestCase
$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);
}
@ -38,10 +36,9 @@ class PostgreSqlConnectionTest extends TestCase
$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();
}