mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
28 lines
631 B
PHP
28 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)
|