xref: /PHP-7.4/ext/date/tests/bug55407.phpt (revision ded3d984)
1--TEST--
2Bug #55407 (Impossible to prototype DateTime::createFromFormat)
3--INI--
4error_reporting=-1
5--FILE--
6<?php namespace melt\core;
7
8class DateTime extends \DateTime {
9    public static function createFromFormat($format, $time, \DateTimeZone $timezone = null) {
10        return new DateTime(parent::createFromFormat($format, $time, $timezone));
11    }
12}
13
14echo "DONE\n";
15?>
16--EXPECT--
17DONE
18