[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())
|
->with($profile->getToken())
|
||||||
->willReturn($profile);
|
->willReturn($profile);
|
||||||
|
|
||||||
|
$collectorsNames = array_keys($profile->getCollectors());
|
||||||
|
|
||||||
$profiler
|
$profiler
|
||||||
->expects($this->atLeastOnce())
|
->expects($this->atLeastOnce())
|
||||||
->method('has')
|
->method('has')
|
||||||
->with($this->logicalXor($collectorsNames = array_keys($profile->getCollectors())))
|
->with($this->logicalXor(...$collectorsNames))
|
||||||
->willReturn(true);
|
->willReturn(true);
|
||||||
|
|
||||||
$expectedTemplate = 'expected_template.html.twig';
|
$expectedTemplate = 'expected_template.html.twig';
|
||||||
|
Reference in New Issue
Block a user