mageekguy\atoum\asserters\phpString::hasLength PHP Method

hasLength() public method

public hasLength ( $length, $failMessage = null )
    public function hasLength($length, $failMessage = null)
    {
        if (strlen($this->valueIsSet()->value) == $length) {
            $this->pass();
        } else {
            $this->fail($failMessage ?: $this->_('length of %s is not %d', $this, $length));
        }
        return $this;
    }