$connection->
__wakeup();
} public function testListenOnConnection() { $driverConnection =
$this->
createMock(\Doctrine\DBAL\Connection::
class);
$driverConnection->
method('executeStatement'
)->
willReturn(1
);
$driverConnection ->
expects(self::
any()) ->
method('getDatabasePlatform'
) ->
willReturn(new PostgreSQLPlatform());
$driverConnection ->
expects(self::
any()) ->
method('createQueryBuilder'
) ->
willReturn(new QueryBuilder($driverConnection));
$wrappedConnection =
new class() { private int
$notifyCalls = 0;
public function pgsqlGetNotify() {