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

notEndWith() public method

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