mageekguy\atoum\asserters\phpString::notContains PHP 메소드

notContains() 공개 메소드

public notContains ( $fragment, $failMessage = null )
    public function notContains($fragment, $failMessage = null)
    {
        if (strpos($this->valueIsSet()->value, $fragment) !== false) {
            $this->fail($failMessage ?: $this->_('%s contains %s', $this, $fragment));
        } else {
            $this->pass();
        }
        return $this;
    }