mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
HTTP API: Revert changeset [52244].
Reverting Requests 2.0.0 changes and moving to WordPress 6.0 cycle. Why? The namespace and file case renaming revealed 2 issues in Core's upgrader process. See https://core.trac.wordpress.org/ticket/54504#comment:22 for more information. Follow-up to [52327]. See #54562, #54504. git-svn-id: https://develop.svn.wordpress.org/trunk@52328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -364,9 +364,9 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_deserialize_request_utility_filtered_iterator_objects( $value ) {
|
||||
$serialized = maybe_serialize( $value );
|
||||
if ( get_class( $value ) === 'WpOrg\Requests\Utility\FilteredIterator' ) {
|
||||
if ( get_class( $value ) === 'Requests_Utility_FilteredIterator' ) {
|
||||
$new_value = unserialize( $serialized );
|
||||
$property = ( new ReflectionClass( 'WpOrg\Requests\Utility\FilteredIterator' ) )->getProperty( 'callback' );
|
||||
$property = ( new ReflectionClass( 'Requests_Utility_FilteredIterator' ) )->getProperty( 'callback' );
|
||||
$property->setAccessible( true );
|
||||
$callback_value = $property->getValue( $new_value );
|
||||
$this->assertSame( null, $callback_value );
|
||||
@@ -377,8 +377,8 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
|
||||
public function data_serialize_deserialize_objects() {
|
||||
return array(
|
||||
array( new WpOrg\Requests\Utility\FilteredIterator( array( 1 ), 'md5' ) ),
|
||||
array( new WpOrg\Requests\Utility\FilteredIterator( array( 1, 2 ), 'sha1' ) ),
|
||||
array( new Requests_Utility_FilteredIterator( array( 1 ), 'md5' ) ),
|
||||
array( new Requests_Utility_FilteredIterator( array( 1, 2 ), 'sha1' ) ),
|
||||
array( new ArrayIterator( array( 1, 2, 3 ) ) ),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user