Skip to content

Commit 4b02edb

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [HttpKernel] Adjust tests to new "class not found" error message format. Don't call createMock with an array of interfaces. [FrameworkBundle] Fix Tests on PHPUnit 9.3. [WebProfilerBundle] Fix Tests on PHPUnit 9.3. esmtp error not being thrown properly [Yaml Parser] fixed Parser to skip comments when inlining sequences [DI] fix generating preload file when cache_dir is outside project_dir Fix CacheCollectorPass with decorated cache pools [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x Remove invalid instantiation declaration [PropertyInfo] Fix typed collections in PHP 7.4
2 parents 8df5828 + f3b967b commit 4b02edb

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)