Download src/php/php-src/tests/classes/abstract_redeclare.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_redeclare.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/abstract_redeclare.phpt
-
curl -L -o abstract_redeclare.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_redeclare.phpt
404 Bytes
| --TEST-- | |
| ZE2 A method cannot be redeclared abstract | |
| --FILE-- | |
| class pass { | |
| function show() { | |
| echo "Call to function show()\n"; | |
| } | |
| } | |
| class fail extends pass { | |
| 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 %sabstract_redeclare.php on line %d | |