diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 4d3a4bbdd5..528e8f1e82 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -172,6 +172,13 @@ class Tests_Functions extends WP_UnitTestCase { $this->assertFalse( is_serialized($case), "Test data: $case" ); } + /** + * @ticket 17375 + */ + function test_no_new_serializable_types() { + $this->assertFalse( is_serialized( 'C:16:"Serialized_Class":6:{a:0:{}}' ) ); + } + /** * @group add_query_arg */