Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * Unit test class for VariableCommentSniff.
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: VariableCommentUnitTest.php 251152 2008-01-23 00:16:35Z squiz $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
/**
18
 * Unit test class for VariableCommentSniff.
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.2.1
27
 * @link      http://pear.php.net/package/PHP_CodeSniffer
28
 */
29
class Squiz_Tests_Commenting_VariableCommentUnitTest 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
                23  => 1,
47
                26  => 1,
48
                30  => 1,
49
                35  => 1,
50
                42  => 1,
51
                45  => 1,
52
                48  => 1,
53
                49  => 1,
54
                59  => 1,
55
                62  => 1,
56
                63  => 1,
57
                70  => 1,
58
                72  => 1,
59
                77  => 2,
60
                81  => 1,
61
                82  => 1,
62
                90  => 1,
63
                91  => 1,
64
                92  => 1,
65
                93  => 1,
66
                94  => 1,
67
                100 => 1,
68
                102 => 1,
69
                103 => 1,
70
                108 => 1,
71
                110 => 1,
72
                111 => 2,
73
                148 => 1,
74
                157 => 1,
75
                166 => 1,
76
                175 => 1,
77
                181 => 1,
78
                182 => 1,
79
                187 => 1,
80
                203 => 1,
81
               );
82
 
83
    }//end getErrorList()
84
 
85
 
86
    /**
87
     * Returns the lines where warnings should occur.
88
     *
89
     * The key of the array should represent the line number and the value
90
     * should represent the number of warnings that should occur on that line.
91
     *
92
     * @return array(int => int)
93
     */
94
    public function getWarningList()
95
    {
96
        return array(
97
                112 => 1,
98
               );
99
 
100
    }//end getWarningList()
101
 
102
 
103
}//end class
104
 
105
?>