function TestCompatibilityTrait::assertStringContainsStringIgnoringCase

Same name in this branch
  1. 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\TestCompatibilityTrait::assertStringContainsStringIgnoringCase()

Forward compatibility for assertStringContainsStringIgnoringCase.

File

core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php, line 52

Class

TestCompatibilityTrait
Makes Drupal's test API forward compatible with multiple versions of PHPUnit.

Namespace

Drupal\TestTools\PhpUnitCompatibility\PhpUnit7

Code

public static function assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = '') : void {
    static::assertContains($needle, $haystack, $message, TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.