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