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

Revision 20116, 618 bytes checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
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.