Download src/php/php-src/Zend/tests/enum/backed-int.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/backed-int.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/enum/backed-int.phpt
-
curl -L -o backed-int.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/backed-int.phpt
178 Bytes
| --TEST-- | |
| Int enum value | |
| --FILE-- | |
| enum Foo: int { | |
| case Bar = 0; | |
| case Baz = 1; | |
| } | |
| var_dump(Foo::Bar->value); | |
| var_dump(Foo::Baz->value); | |
| --EXPECT-- | |
| int(0) | |
| int(1) | |