Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function isSuccessful()
 {
     if ($this->hookCallResults->hasExceptions()) {
         return false;
     }
     return $this->setup->isSuccessful();
 }
 /**
  * {@inheritdoc}
  */
 public function printSetup(Formatter $formatter, Setup $setup)
 {
     if (!$setup->isSuccessful()) {
         if ($setup instanceof HookedSetup) {
             $this->handleHookCalls($formatter, $setup->getHookCallResults(), 'setup');
         }
     }
 }
 /**
  * {@inheritdoc}
  */
 public function printSetup(Formatter $formatter, Setup $setup)
 {
     if (!$setup instanceof HookedSetup) {
         return;
     }
     foreach ($setup->getHookCallResults() as $callResult) {
         $this->printSetupHookCallResult($formatter->getOutputPrinter(), $callResult);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getResultCode()
 {
     if (!$this->setup->isSuccessful()) {
         return self::FAILED;
     }
     if (!$this->teardown->isSuccessful()) {
         return self::FAILED;
     }
     return $this->result->getResultCode();
 }
Exemple #5
0
 /**
  * Checks if step call, setup or teardown produced any output (stdOut or exception).
  *
  * @return Boolean
  */
 public function hasOutput()
 {
     return $this->setup->hasOutput();
 }