Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function isSuccessful()
 {
     if ($this->hookCallResults->hasExceptions()) {
         return false;
     }
     return $this->teardown->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 printTeardown(Formatter $formatter, Teardown $teardown)
 {
     if (!$teardown->isSuccessful()) {
         if ($teardown instanceof HookedTeardown) {
             $this->handleHookCalls($formatter, $teardown->getHookCallResults(), 'teardown');
         }
     }
 }