mageekguy\atoum\asserters\utf8String::notEndWith PHP Method

notEndWith() public method

public notEndWith ( $fragment, $failMessage = null )
    public function notEndWith($fragment, $failMessage = null)
    {
        if (mb_strpos($this->valueIsSet()->value, $fragment, 0, 'UTF-8') === mb_strlen($this->valueIsSet()->value, 'UTF-8') - mb_strlen($fragment, 'UTF-8')) {
            $this->fail($failMessage ?: $this->_('%s end with %s', $this, $fragment));
        } else {
            $this->pass();
        }
        return $this;
    }