mageekguy\atoum\asserters\iterator::isNotEmpty PHP Method

isNotEmpty() public method

public isNotEmpty ( $failMessage = null )
    public function isNotEmpty($failMessage = null)
    {
        if (iterator_count($this->valueIsSet()->value) > 0) {
            $this->pass();
        } else {
            $this->fail($failMessage ?: $this->_('%s is empty', $this));
        }
        return $this;
    }