Beispiel #1
0
 /**
  * Invokes Runnable::run(), storing any exception in the corresponding
  * property, followed by setting the specs' result.
  */
 public function run()
 {
     parent::run();
     if ($this->closure && !$this->exception) {
         $this->result = self::PASSED;
     } elseif ($this->closure) {
         $this->result = self::FAILED;
     } else {
         $this->result = self::INCOMPLETE;
     }
 }
Beispiel #2
0
 /**
  * Invokes Runnable::run(), storing any exception in the corresponding
  * property, followed by setting the specs' result.
  */
 public function run()
 {
     if (true === $this->pending) {
         $this->result = self::PENDING;
     } else {
         parent::run();
         if ($this->closure && !$this->exception) {
             $this->result = self::PASSED;
         } elseif ($this->closure) {
             $this->result = self::FAILED;
         } else {
             $this->result = self::INCOMPLETE;
         }
     }
 }