Download src/php/php-src/Zend/tests/exceptions/exception_005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 233 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/exception_005.phpt
-
curl -L -o exception_005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_005.phpt
233 Bytes
| --TEST-- | |
| Trying to throw exception of an interface | |
| --FILE-- | |
| interface a { } | |
| throw new a(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Cannot instantiate interface a in %s:%d | |
| Stack trace: | |
| #0 {main} | |
| thrown in %s on line %d | |