コード例 #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);
 }
コード例 #2
0
 public function runAction($error)
 {
     $this->currentExampleWriter->displayFatal($this->currentExample, $error);
 }