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 $exception) {
13    echo $exception->getMessage() . "\n";
14}
15
16?>
17--EXPECT--
18Invalid serialization data for DatePeriod object
19