--TEST-- Test that calling DatePeriod::__unserialize() directly with missing arguments throws --FILE-- __unserialize( [ "start" => new DateTime, ] ); } catch (\Error $e) { echo $e::class, ': ', $e->getMessage(), "\n"; } ?> --EXPECT-- Error: Invalid serialization data for DatePeriod object