Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function isSuccessful()
 {
     if ($this->hookCallResults->hasExceptions()) {
         return false;
     }
     return $this->setup->isSuccessful();
 }
 /**
  * {@inheritdoc}
  */
 public function getResultCode()
 {
     if (!$this->setup->isSuccessful()) {
         return self::FAILED;
     }
     if (!$this->teardown->isSuccessful()) {
         return self::FAILED;
     }
     return $this->result->getResultCode();
 }
 /**
  * {@inheritdoc}
  */
 public function printSetup(Formatter $formatter, Setup $setup)
 {
     if (!$setup->isSuccessful()) {
         if ($setup instanceof HookedSetup) {
             $this->handleHookCalls($formatter, $setup->getHookCallResults(), 'setup');
         }
     }
 }