source: branches/version-2_5-dev/data/module/Compat/tests/constant/t.phpt @ 20119

Revision 20119, 618 bytes checked in by nanasess, 13 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
Line 
1--TEST--
2Constant -- Tokenizer constants
3--FILE--
4<?php
5require_once ('PHP/Compat.php');
6PHP_Compat::loadConstant('T');
7
8$constants = array(
9    'T_ML_COMMENT',
10    'T_ML_COMMENT',
11    'T_DOC_COMMENT',
12    'T_OLD_FUNCTION',
13    'T_ABSTRACT',
14    'T_CATCH',
15    'T_FINAL',
16    'T_INSTANCEOF',
17    'T_PRIVATE',
18    'T_PROTECTED',
19    'T_PUBLIC',
20    'T_THROW',
21    'T_TRY',
22    'T_CLONE');
23
24foreach ($constants as $constant) {
25    if (defined($constant)) {
26        echo 'true';
27    } else {
28        echo 'false';
29    }
30    echo "\n";
31}
32
33?>
34--EXPECT--
35true
36true
37true
38true
39true
40true
41true
42true
43true
44true
45true
46true
47true
48true
Note: See TracBrowser for help on using the repository browser.