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

notStartWith() public method

public notStartWith ( $fragment, $failMessage = null )
    public function notStartWith($fragment, $failMessage = null)
    {
        $fragmentPosition = strpos($this->valueIsSet()->value, $fragment);
        if ($fragmentPosition === false || $fragmentPosition > 0) {
            $this->pass();
        } else {
            $this->fail($failMessage ?: $this->_('%s start with %s', $this, $fragment));
        }
        return $this;
    }