summaryrefslogtreecommitdiff
path: root/tests/Unit/Renderer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Renderer')
-rw-r--r--tests/Unit/Renderer/RendererServiceProviderTest.php12
-rw-r--r--tests/Unit/Renderer/TwigServiceProviderTest.php2
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/Unit/Renderer/RendererServiceProviderTest.php b/tests/Unit/Renderer/RendererServiceProviderTest.php
index 224e36d4..e655284d 100644
--- a/tests/Unit/Renderer/RendererServiceProviderTest.php
+++ b/tests/Unit/Renderer/RendererServiceProviderTest.php
@@ -67,15 +67,13 @@ class RendererServiceProviderTest extends ServiceProviderTest
$app = $this->getApp(['get', 'tagged']);
- $engines = [$engine1, $engine2];
-
$this->setExpects($app, 'get', ['renderer'], $renderer);
- $this->setExpects($app, 'tagged', ['renderer.engine'], $engines);
+ $this->setExpects($app, 'tagged', ['renderer.engine'], [$engine1, $engine2]);
- $invocation = $renderer
- ->expects($this->exactly(count($engines)))
- ->method('addRenderer');
- call_user_func_array([$invocation, 'withConsecutive'], $engines);
+ $renderer
+ ->expects($this->exactly(2))
+ ->method('addRenderer')
+ ->withConsecutive([$engine1], [$engine2]);
$serviceProvider = new RendererServiceProvider($app);
$serviceProvider->boot();
diff --git a/tests/Unit/Renderer/TwigServiceProviderTest.php b/tests/Unit/Renderer/TwigServiceProviderTest.php
index 86dee1de..ee4cd971 100644
--- a/tests/Unit/Renderer/TwigServiceProviderTest.php
+++ b/tests/Unit/Renderer/TwigServiceProviderTest.php
@@ -82,7 +82,7 @@ class TwigServiceProviderTest extends ServiceProviderTest
$twig->expects($this->exactly(2))
->method('addExtension')
- ->withConsecutive($firsExtension, $secondExtension);
+ ->withConsecutive([$firsExtension], [$secondExtension]);
$serviceProvider = new TwigServiceProvider($app);
$serviceProvider->boot();