xref: /PHP-7.4/ext/intl/tests/bug77895.phpt (revision ced5bb7d)
1--TEST--
2Bug #77895: IntlDateFormatter::create fails in strict mode if $locale = null
3--SKIPIF--
4<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
5--FILE--
6<?php
7
8declare(strict_types=1);
9
10var_dump(IntlDateFormatter::create(null, IntlDateFormatter::NONE, IntlDateFormatter::NONE));
11
12?>
13--EXPECT--
14object(IntlDateFormatter)#1 (0) {
15}
16