Download src/php/php-src/Zend/tests/functions/007.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/functions/007.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/functions/007.phpt
-
curl -L -o 007.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/functions/007.phpt
310 Bytes
| --TEST-- | |
| Pretty printing for arrow functions | |
| --INI-- | |
| zend.assertions=1 | |
| --FILE-- | |
| try { | |
| assert((function() { return false; })()); | |
| } catch (AssertionError $e) { | |
| echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL; | |
| } | |
| --EXPECT-- | |
| assert(): assert((function () { | |
| return false; | |
| })()) failed | |