Changeset 48937 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r48908 r48937 661 661 662 662 /** 663 * Asserts that two values are equal, with EOL differences discarded.664 * 665 * @since 5. 4.0663 * Asserts that two values have the same type and value, with EOL differences discarded. 664 * 665 * @since 5.6.0 666 666 * 667 667 * @param string $expected The expected value. 668 668 * @param string $actual The actual value. 669 669 */ 670 public function assertSameIgnoreEOL( $expected, $actual ) { 671 $this->assertSame( str_replace( "\r\n", "\n", $expected ), str_replace( "\r\n", "\n", $actual ) ); 672 } 673 674 /** 675 * Asserts that two values are equal, with EOL differences discarded. 676 * 677 * @since 5.4.0 678 * @since 5.6.0 Turned into an alias for `::assertSameIgnoreEOL()`. 679 * 680 * @param string $expected The expected value. 681 * @param string $actual The actual value. 682 */ 670 683 public function assertEqualsIgnoreEOL( $expected, $actual ) { 671 $this->assert Equals( str_replace( "\r\n", "\n", $expected ), str_replace( "\r\n", "\n", $actual ));684 $this->assertSameIgnoreEOL( $expected, $actual ); 672 685 } 673 686
Note: See TracChangeset
for help on using the changeset viewer.