From f290b97d4f43a73d2a6acc5605489ad8ef96aa90 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 6 Sep 2020 19:41:24 +0200 Subject: [PATCH] [WebProfilerBundle] Fix Tests on PHPUnit 9.3. --- .../Tests/Controller/ProfilerControllerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php index d5479ecefc..b3c9825f1f 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php @@ -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';