xref: /PHP-8.0/ext/date/tests/ExtendDateTime.phpt (revision 015fc638)
1--TEST--
2Extendig DatTime and calling __set_state without args
3--CREDITS--
4Gabriel Caruso (carusogabriel34@gmail.com)
5--FILE--
6<?php
7class MyDateTime extends DateTime {
8    public static function __set_state() {}
9}
10?>
11--EXPECTF--
12Fatal error: Method MyDateTime::__set_state() must take exactly 1 argument in %s on line %d
13