// Doctrine DBAL 2 compatibility
class_exists(\Doctrine\DBAL\Platforms\MySqlPlatform::
class);
class DoctrineDataCollectorTest extends TestCase
{ use DoctrineDataCollectorTestTrait;
protected function setUp(): void
{ ClockMock::
register(self::
class);
ClockMock::
withClockMock(1500000000
);
} public function testReset() { $queries =
[ ['sql' => 'SELECT * FROM table1', 'params' =>
[], 'types' =>
[], 'executionMS' => 1
],
];
$c =
$this->
createCollector($queries);
$c->
collect(new Request(),
new Response());
$c->
reset();