Changeset 51461 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 07/19/2021 01:29:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r51451 r51461 391 391 392 392 /** 393 * Asserts that a string haystack does not contain a needle.393 * Asserts that a string haystack contains a needle (case-insensitive). 394 394 * 395 395 * This method has been backported from a more recent PHPUnit version, … … 402 402 * @param string $message Optional. Message to display when the assertion fails. 403 403 */ 404 public static function assertStringContainsStringIgnoringCase( $needle, $haystack, $message = '' ) { 405 static::assertContains( $needle, $haystack, $message, true ); 406 } 407 408 /** 409 * Asserts that a string haystack does not contain a needle. 410 * 411 * This method has been backported from a more recent PHPUnit version, 412 * as tests running on PHP 5.6 use PHPUnit 5.7.x. 413 * 414 * @since 5.9.0 415 * 416 * @param string $needle The string to search for. 417 * @param string $haystack The string to treat as the haystack. 418 * @param string $message Optional. Message to display when the assertion fails. 419 */ 404 420 public static function assertStringNotContainsString( $needle, $haystack, $message = '' ) { 405 421 static::assertNotContains( $needle, $haystack, $message ); 406 422 } 423 424 /** 425 * Asserts that a string haystack does not contain a needle (case-insensitive). 426 * 427 * This method has been backported from a more recent PHPUnit version, 428 * as tests running on PHP 5.6 use PHPUnit 5.7.x. 429 * 430 * @since 5.9.0 431 * 432 * @param string $needle The string to search for. 433 * @param string $haystack The string to treat as the haystack. 434 * @param string $message Optional. Message to display when the assertion fails. 435 */ 436 public static function assertStringNotContainsStringIgnoringCase( $needle, $haystack, $message = '' ) { 437 static::assertNotContains( $needle, $haystack, $message, true ); 438 } 407 439 }
Note: See TracChangeset
for help on using the changeset viewer.