Skip to content

Commit

Permalink
Anonymous function has an unused use $flashMessenger.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 20, 2017
1 parent af3b35a commit 9426274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ModuleTest.php
Expand Up @@ -139,7 +139,7 @@ public function testOnBootstrapWithDoesntHasFlashMessenger()
$flashMessenger = $this->prophesize('Zend\Mvc\Controller\Plugin\FlashMessenger');
$pluginManager = $this->prophesize('Zend\Mvc\Controller\PluginManager');

$sharedEvmAttach->will(function() use ($module, $e, $abstractActionController, $flashMessenger, $pluginManager) {
$sharedEvmAttach->will(function() use ($module, $e, $abstractActionController, $pluginManager) {
$abstractActionController->getPluginManager()->willReturn($pluginManager)->shouldBeCalled();
$pluginManager->has('flashMessenger')->willReturn(false)->shouldBeCalled();

Expand Down

0 comments on commit 9426274

Please sign in to comment.