SebastianBergmann\CodeCoverage\Node\File::getNumTestedFunctions PHP Method

getNumTestedFunctions() public method

Returns the number of tested functions.
public getNumTestedFunctions ( ) : integer
return integer
    public function getNumTestedFunctions()
    {
        if ($this->numTestedFunctions === null) {
            $this->numTestedFunctions = 0;
            foreach ($this->functions as $function) {
                if ($function['executableLines'] > 0 && $function['coverage'] == 100) {
                    $this->numTestedFunctions++;
                }
            }
        }
        return $this->numTestedFunctions;
    }