Skip to content

Commit

Permalink
skip test for WebProfiler >= 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Oct 18, 2023
1 parent 930d651 commit fab97b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/DataCollector/DoctrineDataCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit fab97b6

Please sign in to comment.