Subversion Repositories Applications.framework

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 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
34 aurelien 13
 * @version   CVS: $Id: FunctionCommentUnitTest.php 34 2009-04-09 07:34:39Z aurelien $
5 aurelien 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.2.0RC1
27
 * @link      http://pear.php.net/package/PHP_CodeSniffer
28
 */
29
class PEAR_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
                10  => 1,
45
                12  => 2,
46
                13  => 2,
47
                14  => 1,
48
                15  => 1,
49
                28  => 1,
50
                35  => 1,
51
                38  => 1,
52
                41  => 1,
53
                53  => 1,
54
                103 => 1,
55
                109 => 1,
56
                112 => 1,
57
                122 => 1,
58
                123 => 3,
59
                124 => 3,
60
                125 => 5,
61
                126 => 6,
62
                139 => 1,
63
                155 => 1,
64
                165 => 1,
65
                172 => 1,
66
                183 => 1,
67
                193 => 2,
68
                204 => 1,
69
                234 => 1,
70
               );
71
 
72
    }//end getErrorList()
73
 
74
 
75
    /**
76
     * Returns the lines where warnings should occur.
77
     *
78
     * The key of the array should represent the line number and the value
79
     * should represent the number of warnings that should occur on that line.
80
     *
81
     * @return array(int => int)
82
     */
83
    public function getWarningList()
84
    {
85
        return array();
86
 
87
    }//end getWarningList()
88
 
89
 
90
}//end class
91
 
92
?>