[WebProfilerBundle] Fix Tests on PHPUnit 9.3.
This commit is contained in:
parent
f0bf853a86
commit
f290b97d4f
@ -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';
|
||||
|
Reference in New Issue
Block a user