mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
19 lines
345 B
PHP
19 lines
345 B
PHP
--TEST--
|
|
Test that calling DatePeriod::__set_state() directly with missing arguments throws
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
DatePeriod::__set_state(
|
|
[
|
|
"start" => new DateTime,
|
|
]
|
|
);
|
|
} catch (\Error $exception) {
|
|
echo $exception->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Invalid serialization data for DatePeriod object
|