Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<?php
2
/**
3
 * Unit test class for the ValidFunctionName sniff.
4
 *
5
 * PHP version 5
6
 *
7
 * @category  PHP
8
 * @package   PHP_CodeSniffer
9
 * @author    Greg Sherwood <gsherwood@squiz.net>
10
 * @author    Marc McIntyre <mmcintyre@squiz.net>
11
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
12
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
13
 * @version   CVS: $Id: ValidFunctionNameUnitTest.php,v 1.7 2008/01/22 23:50:23 squiz Exp $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
/**
18
 * Unit test class for the ValidFunctionName sniff.
19
 *
20
 * A sniff unit test checks a .inc file for expected violations of a single
21
 * coding standard. Expected errors and warnings are stored in this class.
22
 *
23
 * @category  PHP
24
 * @package   PHP_CodeSniffer
25
 * @author    Greg Sherwood <gsherwood@squiz.net>
26
 * @author    Marc McIntyre <mmcintyre@squiz.net>
27
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
28
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
29
 * @version   Release: 1.2.0RC1
30
 * @link      http://pear.php.net/package/PHP_CodeSniffer
31
 */
32
class PEAR_Tests_NamingConventions_ValidFunctionNameUnitTest extends AbstractSniffUnitTest
33
{
34
 
35
 
36
    /**
37
     * Returns the lines where errors should occur.
38
     *
39
     * The key of the array should represent the line number and the value
40
     * should represent the number of errors that should occur on that line.
41
     *
42
     * @return array(int => int)
43
     */
44
    public function getErrorList()
45
    {
46
        return array(
47
                11  => 1,
48
                12  => 1,
49
                13  => 1,
50
                14  => 1,
51
                15  => 1,
52
                16  => 1,
53
                17  => 1,
54
                18  => 1,
55
                19  => 1,
56
                20  => 1,
57
                24  => 1,
58
                25  => 1,
59
                26  => 1,
60
                27  => 1,
61
                28  => 1,
62
                29  => 1,
63
                30  => 1,
64
                31  => 1,
65
                32  => 1,
66
                33  => 1,
67
                35  => 1,
68
                36  => 1,
69
                37  => 1,
70
                38  => 1,
71
                39  => 1,
72
                40  => 1,
73
                43  => 1,
74
                44  => 1,
75
                45  => 1,
76
                46  => 1,
77
                50  => 1,
78
                51  => 1,
79
                52  => 1,
80
                53  => 1,
81
                56  => 1,
82
                57  => 1,
83
                58  => 1,
84
                59  => 1,
85
                67  => 1,
86
                68  => 1,
87
                69  => 1,
88
                70  => 1,
89
                71  => 1,
90
                72  => 1,
91
                73  => 1,
92
                74  => 1,
93
                75  => 1,
94
                76  => 1,
95
                80  => 1,
96
                81  => 1,
97
                82  => 1,
98
                83  => 1,
99
                84  => 1,
100
                85  => 1,
101
                86  => 1,
102
                87  => 1,
103
                88  => 1,
104
                89  => 1,
105
                91  => 1,
106
                92  => 1,
107
                93  => 1,
108
                94  => 1,
109
                95  => 1,
110
                96  => 1,
111
                99  => 1,
112
                100 => 1,
113
                101 => 1,
114
                102 => 1,
115
                106 => 1,
116
                107 => 1,
117
                108 => 1,
118
                109 => 1,
119
                112 => 1,
120
                113 => 1,
121
                114 => 1,
122
                115 => 1,
123
                121 => 1,
124
                122 => 1,
125
                123 => 1,
126
                124 => 1,
127
                125 => 1,
128
                126 => 1,
129
                127 => 1,
130
                128 => 1,
131
                129 => 1,
132
                130 => 1,
133
                149 => 1,
134
                150 => 1,
135
                151 => 1,
136
                154 => 1,
137
                155 => 1,
138
                156 => 1,
139
                157 => 1,
140
                158 => 1,
141
                159 => 1,
142
                160 => 1,
143
                161 => 1,
144
                162 => 1,
145
                163 => 1,
146
                164 => 1,
147
                165 => 1,
148
                166 => 1,
149
                168 => 1,
150
                169 => 1,
151
                171 => 1,
152
                172 => 1,
153
                173 => 1,
154
               );
155
 
156
    }//end getErrorList()
157
 
158
 
159
    /**
160
     * Returns the lines where warnings should occur.
161
     *
162
     * The key of the array should represent the line number and the value
163
     * should represent the number of warnings that should occur on that line.
164
     *
165
     * @return array(int => int)
166
     */
167
    public function getWarningList()
168
    {
169
        return array();
170
 
171
    }//end getWarningList()
172
 
173
 
174
}//end class
175
 
176
?>