src/Assertions/Base/AbstractAssert.php
/**
     * Returns true if value contains the expected value, taking the current modifiers into account.
     *
     * @since 1.0.0
     *
     * @param string $expected The expected value.
     * @param string $value    The value.
     *
     * @return bool True if value contains the expected value, false otherwise.
     */
Returns true if value contains the expected value, taking the current modifiers into account.

@param string $expected The expected value.
@param string $value    The value.

@return bool True if value contains the expected value, false otherwise.
Returns true if value contains the expected value taking the current modifiers into account . @param string $expected The expected value . @param string $value The value . @return bool True if value contains the expected value false otherwise .
protected function stringContains(string $expected, string $value): bool
    {
        if ($this->getModifiers()->isRegexp()) {
            return preg_match('/' . $expected . '/' . ($this->getModifiers()->isCaseInsensitive() ? 'i' : ''), $value) === 1;
        }
        return $this->getModifiers()->isCaseInsensitive() ?
            mb_stristr($value, $expected) !== false :
            strpos($value, $expected) !== false;
    }
protected function stringContains ( string $ expected , string $ value ) : bool { if ( $ this -> getModifiers ( ) -> isRegexp ( ) ) { return preg_match ( '/' . $ expected . '/' . ( $ this -> getModifiers ( ) -> isCaseInsensitive ( ) ? 'i' : '' ) , $ value ) === 1 ; } return $ this -> getModifiers ( ) -> isCaseInsensitive ( ) ? mb_stristr ( $ value , $ expected ) !== false : strpos ( $ value , $ expected ) !== false ; }
Returns true if value contains the expected value, taking the current modifiers into account.
Returns true if value contains the expected value taking the current modifiers into account .