Make WordPress Core


Ignore:
Timestamp:
05/28/2015 05:22:14 AM (9 years ago)
Author:
nacin
Message:

Add unit test asserting that serializable objects will never pass is_serialized(). see #17375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r31966 r32631  
    171171        foreach ( $not_serialized as $case )
    172172            $this->assertFalse( is_serialized($case), "Test data: $case" );
     173    }
     174
     175    /**
     176     * @ticket 17375
     177     */
     178    function test_no_new_serializable_types() {
     179        $this->assertFalse( is_serialized( 'C:16:"Serialized_Class":6:{a:0:{}}' ) );
    173180    }
    174181
Note: See TracChangeset for help on using the changeset viewer.