1--TEST-- 2Test that calling DatePeriod::__set_state() directly with missing arguments throws 3--FILE-- 4<?php 5 6try { 7 DatePeriod::__set_state( 8 [ 9 "start" => new DateTime, 10 ] 11 ); 12} catch (\Error $e) { 13 echo $e::class, ': ', $e->getMessage(), "\n"; 14} 15 16?> 17--EXPECT-- 18Error: Invalid serialization data for DatePeriod object 19