Download src/php/php-src/Zend/tests/enum/__toString.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/__toString.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/enum/__toString.phpt
-
curl -L -o __toString.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/enum/__toString.phpt
240 Bytes
| --TEST-- | |
| Enum __toString | |
| --FILE-- | |
| enum Foo { | |
| case Bar; | |
| public function __toString(): string { | |
| return $this->name; | |
| } | |
| } | |
| --EXPECTF-- | |
| Fatal error: Enum Foo cannot include magic method __toString in %s on line %d | |