mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
29 lines
631 B
PHP
29 lines
631 B
PHP
--TEST--
|
|
IntlTimeZone equals handler: basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
$tz1 = intltz_create_time_zone('Europe/Lisbon');
|
|
$tz2 = intltz_create_time_zone('Europe/Lisbon');
|
|
echo "Comparison to self:\n";
|
|
var_dump($tz1 == $tz1);
|
|
echo "Comparison to equal instance:\n";
|
|
var_dump($tz1 == $tz2);
|
|
echo "Comparison to equivalent instance:\n";
|
|
var_dump($tz1 == intltz_create_time_zone('Portugal'));
|
|
echo "Comparison to GMT:\n";
|
|
var_dump($tz1 == intltz_get_gmt());
|
|
|
|
?>
|
|
--EXPECT--
|
|
Comparison to self:
|
|
bool(true)
|
|
Comparison to equal instance:
|
|
bool(true)
|
|
Comparison to equivalent instance:
|
|
bool(false)
|
|
Comparison to GMT:
|
|
bool(false)
|