Download src/php/php-src/Zend/tests/assert/gh16293_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/gh16293_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/assert/gh16293_002.phpt
-
curl -L -o gh16293_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/gh16293_002.phpt
385 Bytes
| --TEST-- | |
| GH-16293: Exception in assert() callback with bail enabled | |
| --FILE-- | |
| @assert_options(ASSERT_EXCEPTION, 0); | |
| @assert_options(ASSERT_BAIL, 1); | |
| @assert_options(ASSERT_CALLBACK, function () { | |
| throw new Exception('Boo'); | |
| }); | |
| assert(false); | |
| --EXPECTF-- | |
| Warning: assert(): assert(false) failed in %s on line %d | |
| Warning: Uncaught Exception: Boo in %s:%d | |
| Stack trace: | |
| %a | |