- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/stripslashesDeep.php
r53562 r54891 27 27 $this->assertSame( array_values( $arr ), stripslashes_deep( array_values( $arr ) ) ); // Non-keyed. 28 28 29 $obj = new stdClass ;29 $obj = new stdClass(); 30 30 foreach ( $arr as $k => $v ) { 31 31 $obj->$k = $v; … … 42 42 $this->assertSame( array( $new ), stripslashes_deep( array( $old ) ) ); // Non-keyed. 43 43 44 $obj_old = new stdClass ;44 $obj_old = new stdClass(); 45 45 $obj_old->a = $old; 46 $obj_new = new stdClass ;46 $obj_new = new stdClass(); 47 47 $obj_new->a = $new; 48 48 $this->assertEquals( $obj_new, stripslashes_deep( $obj_old ) );
Note: See TracChangeset
for help on using the changeset viewer.