PhpBench\Model\Variant::hasErrorStack PHP Method

hasErrorStack() public method

Return true if any of the iterations in this set encountered an error.
public hasErrorStack ( ) : boolean
return boolean
    public function hasErrorStack()
    {
        return null !== $this->errorStack;
    }

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function variantEnd(Variant $variant)
 {
     if ($variant->hasErrorStack()) {
         $this->output->write(sprintf("    %-30s<error>ERROR</error>", $variant->getSubject()->getName()));
         $this->output->write(PHP_EOL);
         return;
     }
     $this->output->write(sprintf("\t%s", $this->formatIterationsFullSummary($variant)));
     $this->output->write(PHP_EOL);
 }
All Usage Examples Of PhpBench\Model\Variant::hasErrorStack