Download src/php/php-src/tests/classes/abstract_final.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_final.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/abstract_final.phpt
-
curl -L -o abstract_final.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_final.phpt
253 Bytes
| --TEST-- | |
| ZE2 A final method cannot be abstract | |
| --FILE-- | |
| <?php | |
| class fail { | |
| abstract final function show(); | |
| } | |
| echo "Done\n"; // Shouldn't be displayed | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Cannot use the final modifier on an abstract method in %s on line %d | |