->
willReturn($result) ;
$driverConnection->
expects($this->
once())->
method('commit'
);
$connection =
new Connection([],
$driverConnection);
$connection->
get();
} public static function providePlatformSql(): iterable
{ yield 'MySQL' =>
[ new MySQL57Platform(),
'SELECT m.* FROM messenger_messages m WHERE (m.delivered_at is null OR m.delivered_at < ?) AND (m.available_at <= ?) AND (m.queue_name = ?) ORDER BY available_at ASC LIMIT 1 FOR UPDATE',
];
if (class_exists(MariaDBPlatform::
class)) { yield 'MariaDB' =>
[ new MariaDBPlatform(),
'SELECT m.* FROM messenger_messages m WHERE (m.delivered_at is null OR m.delivered_at < ?) AND (m.available_at <= ?) AND (m.queue_name = ?) ORDER BY available_at ASC LIMIT 1 FOR UPDATE',
];
} yield 'SQL Server' =>
[