Make WordPress Core


Ignore:
Timestamp:
12/22/2009 01:39:57 PM (14 years ago)
Author:
westi
Message:

Add some extra test cases for strings that are not serialized. From Denis-de-Bernardy on WP#9930.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_functions.php

    r278 r279  
    256256        foreach ( $cases as $case )
    257257            $this->assertTrue( is_serialized($case), "Serialized data: $case" );
    258 
     258           
     259        $not_serialized = array(
     260                                    "a string",
     261                                    "garbage:a:0:garbage;"
     262                                );
     263                               
     264        foreach ( $not_serialized as $case )
     265            $this->assertFalse( is_serialized($case), "Test data: $case" );
    259266    }
    260267   
Note: See TracChangeset for help on using the changeset viewer.