->
method('getConnectionNames'
) ->
willReturn(['default' => 'doctrine.dbal.default_connection'
]);
$registry ->
expects($this->
any()) ->
method('getManagerNames'
) ->
willReturn(['default' => 'doctrine.orm.default_entity_manager'
]);
$registry->
expects($this->
any()) ->
method('getConnection'
) ->
willReturn($connection);
$this->
expectDeprecation('Since symfony/doctrine-bridge 6.4: Not passing an instance of "Symfony\Bridge\Doctrine\Middleware\Debug\DebugDataHolder" as "$debugDataHolder" to "Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector::__construct()" is deprecated.'
);
$collector =
new DoctrineDataCollector($registry);
$logger =
$this->
createMock(DebugStack::
class);
$logger->queries =
$queries;
$this->
expectDeprecation('Since symfony/doctrine-bridge 6.4: "Symfony\Bridge\Doctrine\DataCollector\DoctrineDataCollector::addLogger()" is deprecated. Pass an instance of "Symfony\Bridge\Doctrine\Middleware\Debug\DebugDataHolder" to the constructor instead.'
);
$collector->
addLogger('default',
$logger);
return $collector;
}}class StringRepresentableClass{