function it_should_update_the_console(FatalPresenter $currentExampleWriter) { $currentExample = new CurrentExampleTracker(); $error = array('type' => 1, 'message' => 'Hello'); $currentExample->getCurrentExample('Hello'); $currentExampleWriter->displayFatal($currentExample, $error)->shouldBeCalled(); $this->runAction($error); }
public function runAction($error) { $this->currentExampleWriter->displayFatal($this->currentExample, $error); }