Download src/php/php-src/tests/classes/abstract_not_declared.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_not_declared.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/abstract_not_declared.phpt
-
curl -L -o abstract_not_declared.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_not_declared.phpt
288 Bytes
| --TEST-- | |
| ZE2 An abstract class must be declared abstract | |
| --FILE-- | |
| <?php | |
| class fail { | |
| abstract function show(); | |
| } | |
| echo "Done\n"; // shouldn't be displayed | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Class fail declares abstract method show() and must therefore be declared abstract in %s on line %d | |