1--TEST-- 2IntlTimeZone::hasSameRules(): basic test 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8 9$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon'); 10$prt = IntlTimeZone::createTimeZone('Portugal'); 11$azo = IntlTimeZone::createTimeZone('Atlantic/Azores'); 12 13echo "Europe/Lisbon has same rules as itself:\n"; 14var_dump($lsb->hasSameRules($lsb)); 15 16echo "\nEurope/Lisbon has same rules as Portugal:\n"; 17var_dump($lsb->hasSameRules($prt)); 18 19echo "\nEurope/Lisbon has same rules as Atlantic/Azores:\n"; 20var_dump(intltz_has_same_rules($lsb, $azo)); 21 22?> 23--EXPECT-- 24Europe/Lisbon has same rules as itself: 25bool(true) 26 27Europe/Lisbon has same rules as Portugal: 28bool(true) 29 30Europe/Lisbon has same rules as Atlantic/Azores: 31bool(false) 31