Download src/php/php-src/tests/classes/abstract_static.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_static.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/classes/abstract_static.phpt
-
curl -L -o abstract_static.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/classes/abstract_static.phpt
547 Bytes
| --TEST-- | |
| ZE2 A static abstract methods | |
| --FILE-- | |
| interface showable | |
| { | |
| static function show(); | |
| } | |
| class pass implements showable | |
| { | |
| static function show() { | |
| echo "Call to function show()\n"; | |
| } | |
| } | |
| pass::show(); | |
| eval(' | |
| class fail | |
| { | |
| abstract static function func(); | |
| } | |
| '); | |
| fail::show(); | |
| echo "Done\n"; // shouldn't be displayed | |
| --EXPECTF-- | |
| Call to function show() | |
| Fatal error: Class fail declares abstract method func() and must therefore be declared abstract in %sabstract_static.php(%d) : eval()'d code on line %d | |