protected function doMatch($actual)
    {
        if (!is_string($actual)) {
            throw new \InvalidArgumentException('SubStringMatcher requires string value');
        }

        return strpos($actual, $this->expected) !== false;
    }
protected function doMatch($actual)
    {
        if (!is_string($actual)) {
            throw new \InvalidArgumentException('SubStringMatcher requires string value');
        }

        return strpos($actual, $this->expected) !== false;
    }
protected function doMatch ( $ actual ) { if ( ! is_string ( $ actual ) ) { throw new \ InvalidArgumentException ( 'SubStringMatcher requires string value' ) ; } return strpos ( $ actual , $ this -> expected ) !== false ; }
Match that actual value has the expected sub string.

@param  string $actual
@return mixed
Match that actual value has the expected sub string .