~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php

  • Committer: Bazaar Package Importer
  • Author(s): Jack Bates
  • Date: 2008-10-01 17:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081001173943-2dy06n1e8zwyw1o8
Tags: 1.1.0-1
* New upstream release
* Acknowledge NMU, thanks Jan

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * Unit test class for FunctionCommentSniff.
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: FunctionCommentUnitTest.php,v 1.16 2007/11/07 22:05:31 squiz Exp $
14
 
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 
 */
16
 
 
17
 
/**
18
 
 * Unit test class for FunctionCommentSniff.
19
 
 *
20
 
 * @category  PHP
21
 
 * @package   PHP_CodeSniffer
22
 
 * @author    Greg Sherwood <gsherwood@squiz.net>
23
 
 * @author    Marc McIntyre <mmcintyre@squiz.net>
24
 
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
25
 
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
26
 
 * @version   Release: 1.0.1
27
 
 * @link      http://pear.php.net/package/PHP_CodeSniffer
28
 
 */
29
 
class Squiz_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest
30
 
{
31
 
 
32
 
 
33
 
    /**
34
 
     * Returns the lines where errors should occur.
35
 
     *
36
 
     * The key of the array should represent the line number and the value
37
 
     * should represent the number of errors that should occur on that line.
38
 
     *
39
 
     * @return array(int => int)
40
 
     */
41
 
    public function getErrorList()
42
 
    {
43
 
        return array(
44
 
                6   => 1,
45
 
                8   => 1,
46
 
                10  => 4,
47
 
                12  => 3,
48
 
                13  => 3,
49
 
                14  => 1,
50
 
                15  => 1,
51
 
                16  => 1,
52
 
                28  => 1,
53
 
                35  => 3,
54
 
                38  => 1,
55
 
                40  => 1,
56
 
                41  => 1,
57
 
                43  => 1,
58
 
                44  => 1,
59
 
                52  => 1,
60
 
                53  => 1,
61
 
                54  => 1,
62
 
                66  => 1,
63
 
                76  => 1,
64
 
                87  => 1,
65
 
                96  => 1,
66
 
                103 => 1,
67
 
                109 => 1,
68
 
                110 => 1,
69
 
                112 => 2,
70
 
                122 => 1,
71
 
                123 => 4,
72
 
                124 => 3,
73
 
                125 => 5,
74
 
                126 => 6,
75
 
                127 => 1,
76
 
                137 => 3,
77
 
                138 => 2,
78
 
                139 => 3,
79
 
                141 => 1,
80
 
                144 => 2,
81
 
                156 => 2,
82
 
                159 => 1,
83
 
                160 => 2,
84
 
                168 => 1,
85
 
                175 => 1,
86
 
                182 => 1,
87
 
                184 => 1,
88
 
                185 => 3,
89
 
                186 => 1,
90
 
                196 => 4,
91
 
                199 => 1,
92
 
                200 => 1,
93
 
                201 => 1,
94
 
                204 => 2,
95
 
                216 => 2,
96
 
                217 => 2,
97
 
                228 => 1,
98
 
                229 => 1,
99
 
                230 => 1,
100
 
                231 => 1,
101
 
                232 => 1,
102
 
                233 => 1,
103
 
                237 => 2,
104
 
                239 => 1,
105
 
                254 => 1,
106
 
                256 => 4,
107
 
                269 => 1,
108
 
                271 => 1,
109
 
                272 => 1,
110
 
                285 => 1,
111
 
                286 => 1,
112
 
                287 => 1,
113
 
                288 => 1,
114
 
                289 => 1,
115
 
                290 => 1,
116
 
                294 => 1,
117
 
                296 => 2,
118
 
                303 => 1,
119
 
                310 => 1,
120
 
                318 => 1,
121
 
                328 => 1,
122
 
                346 => 1,
123
 
                356 => 1,
124
 
                357 => 1,
125
 
                370 => 1,
126
 
                371 => 1,
127
 
                386 => 2,
128
 
                401 => 1,
129
 
                422 => 1,
130
 
                457 => 1,
131
 
               );
132
 
 
133
 
    }//end getErrorList()
134
 
 
135
 
 
136
 
    /**
137
 
     * Returns the lines where warnings should occur.
138
 
     *
139
 
     * The key of the array should represent the line number and the value
140
 
     * should represent the number of warnings that should occur on that line.
141
 
     *
142
 
     * @return array(int => int)
143
 
     */
144
 
    public function getWarningList()
145
 
    {
146
 
        return array(
147
 
                203 => 1,
148
 
               );
149
 
 
150
 
    }//end getWarningList()
151
 
 
152
 
 
153
 
}//end class
154
 
 
155
 
?>