Changeset 54997 for trunk/tests/phpunit/tests/functions/maybeSerialize.php
- Timestamp:
- 12/15/2022 09:30:26 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/maybeSerialize.php
r53890 r54997 214 214 $serialized = maybe_serialize( $value ); 215 215 216 if ( get_class( $value ) === ' Requests_Utility_FilteredIterator' ) {216 if ( get_class( $value ) === 'WpOrg\Requests\Utility\FilteredIterator' ) { 217 217 $new_value = unserialize( $serialized ); 218 $property = ( new ReflectionClass( ' Requests_Utility_FilteredIterator' ) )->getProperty( 'callback' );218 $property = ( new ReflectionClass( 'WpOrg\Requests\Utility\FilteredIterator' ) )->getProperty( 'callback' ); 219 219 $property->setAccessible( true ); 220 220 $callback_value = $property->getValue( $new_value ); … … 234 234 return array( 235 235 'filtered iterator using md5' => array( 236 new Requests_Utility_FilteredIterator( array( 1 ), 'md5' ),236 new WpOrg\Requests\Utility\FilteredIterator( array( 1 ), 'md5' ), 237 237 ), 238 238 'filtered iterator using sha1' => array( 239 new Requests_Utility_FilteredIterator( array( 1, 2 ), 'sha1' ),239 new WpOrg\Requests\Utility\FilteredIterator( array( 1, 2 ), 'sha1' ), 240 240 ), 241 241 'array iterator' => array(
Note: See TracChangeset
for help on using the changeset viewer.