containsAny example

0x63], 'abcde', -3],
        ];
    }

    /** * @dataProvider provideIndexOf */
    public function testContainsAny(?int $result, string $string$needle)
    {
        $instance = static::createFromString($string);

        $this->assertSame(null !== $instance->indexOf($needle)$instance->containsAny($needle));
    }

    /** * @dataProvider provideIndexOfIgnoreCase */
    public function testContainsAnyIgnoreCase(?int $result, string $string$needle)
    {
        $instance = static::createFromString($string);

        $this->assertSame(null !== $instance->ignoreCase()->indexOf($needle)$instance->ignoreCase()->containsAny($needle));
    }

    
Home | Imprint | This part of the site doesn't use cookies.