From ae07f216ccf277c9323b4c972b5bc96c1e8ace85 Mon Sep 17 00:00:00 2001 From: Sam Schmidt Date: Fri, 13 Nov 2015 11:45:57 -0500 Subject: [PATCH] Fix bad parameter reference in scry:behat. --- src/LinusShops/Prophet/Commands/Scry/Behat.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LinusShops/Prophet/Commands/Scry/Behat.php b/src/LinusShops/Prophet/Commands/Scry/Behat.php index d98e965..e7c492f 100644 --- a/src/LinusShops/Prophet/Commands/Scry/Behat.php +++ b/src/LinusShops/Prophet/Commands/Scry/Behat.php @@ -84,11 +84,12 @@ public function doTest( $factory = new ApplicationFactory(); $app = $factory->createApplication(); $app->setAutoExit(false); - Events::dispatch(Events::PROPHET_PREMODULE, array($module, 'behat')); + $options = new Events\Options(array($module, 'behat')); + Events::dispatch(Events::PROPHET_PREMODULE, $options); $app->run($input); - Events::dispatch(Events::PROPHET_POSTMODULE, array($module, 'behat')); + Events::dispatch(Events::PROPHET_POSTMODULE, $options); //Phantom doesn't seem to respond to normal signalling. //Known issue when using GhostDriver- just kill it. $this->killPhantom();