Download src/php/php-src/Zend/tests/assert/expect_005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/assert/expect_005.phpt
-
curl -L -o expect_005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_005.phpt
319 Bytes
| --TEST-- | |
| test providing reason (pass) | |
| --INI-- | |
| zend.assertions=1 | |
| assert.exception=1 | |
| --FILE-- | |
| try { | |
| /* by passing we test there are no leaks upon success */ | |
| assert(true, "I require this to succeed"); | |
| } catch (AssertionError $ex) { | |
| var_dump($ex->getMessage()); | |
| } | |
| var_dump(true); | |
| --EXPECT-- | |
| bool(true) | |