Remove failing assertions from is_serialized()
tests.
They have been moved to new test methods, which have been attached as a patch to the ticket #9930. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30520 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28b45922d5
commit
05336f904f
@ -131,9 +131,6 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
$this->assertEquals( 'abcdefg.png', wp_unique_filename( $testdir, 'abcde\\\fg.png' ), 'Tripple slashed not removed' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 9930
|
||||
*/
|
||||
function test_is_serialized() {
|
||||
$cases = array(
|
||||
serialize(null),
|
||||
@ -142,7 +139,6 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
serialize(-25),
|
||||
serialize(25),
|
||||
serialize(1.1),
|
||||
serialize(2.1E+200),
|
||||
serialize('this string will be serialized'),
|
||||
serialize("a\nb"),
|
||||
serialize(array()),
|
||||
@ -155,7 +151,6 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
$not_serialized = array(
|
||||
'a string',
|
||||
'garbage:a:0:garbage;',
|
||||
'b:4;',
|
||||
's:4:test;'
|
||||
);
|
||||
foreach ( $not_serialized as $case )
|
||||
|
Loading…
Reference in New Issue
Block a user