diff --git a/Tests/DataCollector/DoctrineDataCollectorTest.php b/Tests/DataCollector/DoctrineDataCollectorTest.php index f4f2aa00..4828ea24 100644 --- a/Tests/DataCollector/DoctrineDataCollectorTest.php +++ b/Tests/DataCollector/DoctrineDataCollectorTest.php @@ -15,9 +15,9 @@ use Symfony\Bridge\Doctrine\Middleware\Debug\DebugDataHolder; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Kernel; use function interface_exists; +use function method_exists; class DoctrineDataCollectorTest extends TestCase { @@ -133,7 +133,7 @@ public function testGetGroupedQueries(): void /** @group legacy */ public function testGetGroupedQueriesWithDeprecatedDebugStackLogger(): void { - if (Kernel::VERSION_ID >= 70000) { + if (! method_exists(DoctrineDataCollector::class, 'addLogger')) { $this->markTestSkipped('This test requires symfony < 7.0'); }