public static function TestCompatibilityTrait::assertStringContainsString in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit7\TestCompatibilityTrait::assertStringContainsString()
- 8 core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\TestCompatibilityTrait::assertStringContainsString()
Forward compatibility for assertStringContainsString.
File
- core/
tests/ Drupal/ TestTools/ PhpUnitCompatibility/ PhpUnit7/ TestCompatibilityTrait.php, line 45
Class
- TestCompatibilityTrait
- Makes Drupal's test API forward compatible with multiple versions of PHPUnit.
Namespace
Drupal\TestTools\PhpUnitCompatibility\PhpUnit7Code
public static function assertStringContainsString(string $needle, string $haystack, string $message = '') : void {
static::assertContains($needle, $haystack, $message);
}