Skip to content

Commit f3b967b

Browse files
committed
[WebProfilerBundle] Fix Tests on PHPUnit 9.3.
1 parent 561de7c commit f3b967b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Controller/ProfilerControllerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,12 @@ public function testDefaultPanel(string $expectedPanel, Profile $profile)
382382
->with($profile->getToken())
383383
->willReturn($profile);
384384

385+
$collectorsNames = array_keys($profile->getCollectors());
386+
385387
$profiler
386388
->expects($this->atLeastOnce())
387389
->method('has')
388-
->with($this->logicalXor($collectorsNames = array_keys($profile->getCollectors())))
390+
->with($this->logicalXor(...$collectorsNames))
389391
->willReturn(true);
390392

391393
$expectedTemplate = 'expected_template.html.twig';

0 commit comments

Comments
 (0)