Changeset 65188
- Timestamp:
- 11/02/2026 03:49:03 PM (18 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/stripslashesDeep.php
r64066 r65188 6 6 * 7 7 * @covers ::stripslashes_deep 8 * @covers ::stripslashes_from_strings_only 8 9 */ 9 10 class Tests_Formatting_StripslashesDeep extends WP_UnitTestCase { … … 56 57 $this->assertSame( $txt, stripslashes_deep( "I can\'t see, isn\\\\\'t that it?" ) ); 57 58 } 59 60 /** 61 * Tests that stripslashes_from_strings_only() does not strip slashes from array elements. 62 * 63 * Unlike stripslashes_deep(), stripslashes_from_strings_only() does not recurse into arrays. 64 * 65 * @ticket 65819 66 */ 67 public function test_stripslashes_from_strings_only_does_not_strip_array() { 68 $slashed_array = array( "I can\'t see", 'b' ); 69 70 $this->assertSame( $slashed_array, stripslashes_from_strings_only( $slashed_array ) ); 71 } 58 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)