Changeset 46612 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 10/29/2019 02:26:41 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r46586 r46612 634 634 public function assertDiscardWhitespace( $expected, $actual ) { 635 635 $this->assertEquals( preg_replace( '/\s*/', '', $expected ), preg_replace( '/\s*/', '', $actual ) ); 636 } 637 638 /** 639 * Asserts that two values are equal, with EOL differences discarded. 640 * 641 * @since 5.4.0 642 * 643 * @param string $expected The expected value. 644 * @param string $actual The actual value. 645 */ 646 public function assertEqualsIgnoreEOL( $expected, $actual ) { 647 $this->assertEquals( str_replace( "\r\n", "\n", $expected ), str_replace( "\r\n", "\n", $actual ) ); 636 648 } 637 649
Note: See TracChangeset
for help on using the changeset viewer.