Download src/php/php-src/tests/classes/abstract_derived.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_derived.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/abstract_derived.phpt
-
curl -L -o abstract_derived.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_derived.phpt
326 Bytes
| --TEST-- | |
| ZE2 A derived class with an abstract method must be abstract | |
| --FILE-- | |
| <?php | |
| class base { | |
| } | |
| class derived extends base { | |
| abstract function show(); | |
| } | |
| ?> | |
| ===DONE=== | |
| --EXPECTF-- | |
| Fatal error: Class derived declares abstract method show() and must therefore be declared abstract in %sabstract_derived.php on line %d | |