kahlan\Summary::expectation PHP Method

expectation() public method

Return the total number of expectations.
public expectation ( ) : integer
return integer
    public function expectation()
    {
        $total = 0;
        foreach ($this->_logs as $key => $value) {
            foreach ($value as $log) {
                $total += count($log->children());
            }
        }
        return $total;
    }