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