source:
branches/version-2_13-dev/data/module/Compat/tests/function/constant.phpt
@
20119
| Revision 20119, 273 bytes checked in by nanasess, 15 years ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | --TEST-- |
| 2 | Function -- constant |
| 3 | --SKIPIF-- |
| 4 | <?php if (function_exists('constant')) { echo 'skip'; } ?> |
| 5 | --FILE-- |
| 6 | <?php |
| 7 | require_once 'PHP/Compat.php'; |
| 8 | PHP_Compat::loadFunction('constant'); |
| 9 | |
| 10 | $constant = 'BAR'; |
| 11 | define($constant, 'foo'); |
| 12 | echo constant($constant); |
| 13 | ?> |
| 14 | --EXPECT-- |
| 15 | foo |
Note: See TracBrowser
for help on using the repository browser.
