Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public function runAction($error)
 {
     $this->currentExampleWriter->displayFatal($this->currentExample, $error);
 }