xref: /PHP-7.3/ext/date/tests/bug75857.phpt (revision f7069371)
1--TEST--
2Failing test case for #75857: Long timezones truncation
3--CREDITS--
4Gabriel Caruso (carusogabriel34@gmail.com)
5--FILE--
6<?php
7$longDate = new DateTime('now', new DateTimeZone('America/Argentina/ComodRivadavia'));
8$mediumDate = new DateTime('now', new DateTimeZone('America/Indiana/Indianapolis'));
9$smallDate = new DateTime('now', new DateTimeZone('America/Sao_Paulo'));
10
11var_dump($longDate->format('e'));
12var_dump($mediumDate->format('e'));
13var_dump($smallDate->format('e'));
14?>
15--EXPECT--
16string(32) "America/Argentina/ComodRivadavia"
17string(28) "America/Indiana/Indianapolis"
18string(17) "America/Sao_Paulo"
19