Alex\BehatLauncher\Behat\RunUnitList::countFailed PHP Method

countFailed() public method

public countFailed ( ) : integer
return integer
    public function countFailed()
    {
        $count = 0;
        foreach ($this->all() as $one) {
            if ($one->isFailed()) {
                $count++;
            }
        }
        return $count;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @return integer
  */
 public function countFailed()
 {
     return $this->units->countFailed();
 }