[WebProfilerBundle] Fix Tests on PHPUnit 9.3.

This commit is contained in:
Alexander M. Turek 2020-09-06 19:41:24 +02:00
parent f0bf853a86
commit f290b97d4f

View File

@ -382,10 +382,12 @@ class ProfilerControllerTest extends WebTestCase
->with($profile->getToken())
->willReturn($profile);
$collectorsNames = array_keys($profile->getCollectors());
$profiler
->expects($this->atLeastOnce())
->method('has')
->with($this->logicalXor($collectorsNames = array_keys($profile->getCollectors())))
->with($this->logicalXor(...$collectorsNames))
->willReturn(true);
$expectedTemplate = 'expected_template.html.twig';