1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/intl/tests/timezone_createDefault_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

30 lines
514 B
PHP

--TEST--
IntlTimeZone::createDefault(): basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$tz = IntlTimeZone::createDefault();
print_r($tz);
$tz = intltz_create_default();
print_r($tz);
?>
--EXPECTF--
IntlTimeZone Object
(
[valid] => 1
[id] => %s
[rawOffset] => %i
[currentOffset] => %i
)
IntlTimeZone Object
(
[valid] => 1
[id] => %s
[rawOffset] => %i
[currentOffset] => %i
)