Download src/php/php-src/ext/date/tests/010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 891 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/date/tests/010.phpt
-
curl -L -o 010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/010.phpt
891 Bytes
| --TEST-- | |
| timezone_abbreviations_list() tests | |
| --FILE-- | |
| <?php | |
| date_default_timezone_set('UTC'); | |
| $timezone_abbreviations = timezone_abbreviations_list(); | |
| var_dump($timezone_abbreviations["utc"]); | |
| echo "Done\n"; | |
| ?> | |
| --EXPECT-- | |
| array(5) { | |
| [0]=> | |
| array(3) { | |
| ["dst"]=> | |
| bool(false) | |
| ["offset"]=> | |
| int(0) | |
| ["timezone_id"]=> | |
| string(13) "Etc/Universal" | |
| } | |
| [1]=> | |
| array(3) { | |
| ["dst"]=> | |
| bool(false) | |
| ["offset"]=> | |
| int(0) | |
| ["timezone_id"]=> | |
| string(7) "Etc/UTC" | |
| } | |
| [2]=> | |
| array(3) { | |
| ["dst"]=> | |
| bool(false) | |
| ["offset"]=> | |
| int(0) | |
| ["timezone_id"]=> | |
| string(8) "Etc/Zulu" | |
| } | |
| [3]=> | |
| array(3) { | |
| ["dst"]=> | |
| bool(false) | |
| ["offset"]=> | |
| int(0) | |
| ["timezone_id"]=> | |
| string(3) "UTC" | |
| } | |
| [4]=> | |
| array(3) { | |
| ["dst"]=> | |
| bool(false) | |
| ["offset"]=> | |
| int(0) | |
| ["timezone_id"]=> | |
| string(3) "UTC" | |
| } | |
| } | |
| Done | |