Add missing this for stubs expecting a number of method calls to work

This commit is contained in:
stoletniy
2017-06-21 19:14:17 +03:00
committed by pavel-mailpoet
parent 0e5401dd68
commit 6ff3895940
5 changed files with 27 additions and 14 deletions

View File

@@ -50,7 +50,8 @@ class RendererTest extends MailPoetTest {
'renderer' => Stub::makeEmpty('Twig_Environment',
array(
'render' => Stub::atLeastOnce(function() { return 'test render'; }),
)
),
$this
),
)
);
@@ -69,7 +70,8 @@ class RendererTest extends MailPoetTest {
'render' => Stub::atLeastOnce(function() use ($exception_message) {
throw new \RuntimeException($exception_message);
}),
)
),
$this
),
)
);