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 the Indentation sniff.
4
 *
5
 * PHP version 5
6
 *
7
 * @category  PHP
8
 * @package   PHP_CodeSniffer
9
 * @author    Greg Sherwood <gsherwood@squiz.net>
10
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
11
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
12
 * @version   CVS: $Id: IndentationUnitTest.php 268171 2008-11-03 04:58:13Z squiz $
13
 * @link      http://pear.php.net/package/PHP_CodeSniffer
14
 */
15
 
16
/**
17
 * Unit test class for the Indentation sniff.
18
 *
19
 * A sniff unit test checks a .inc file for expected violations of a single
20
 * coding standard. Expected errors and warnings are stored in this class.
21
 *
22
 * @category  PHP
23
 * @package   PHP_CodeSniffer
24
 * @author    Greg Sherwood <gsherwood@squiz.net>
25
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
26
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
27
 * @version   Release: 1.2.1
28
 * @link      http://pear.php.net/package/PHP_CodeSniffer
29
 */
30
class Squiz_Tests_CSS_IndentationUnitTest extends AbstractSniffUnitTest
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
                2  => 1,
45
                3  => 1,
46
                5  => 1,
47
                6  => 1,
48
                7  => 1,
49
                12 => 1,
50
               );
51
 
52
    }//end getErrorList()
53
 
54
 
55
    /**
56
     * Returns the lines where warnings should occur.
57
     *
58
     * The key of the array should represent the line number and the value
59
     * should represent the number of warnings that should occur on that line.
60
     *
61
     * @return array(int => int)
62
     */
63
    public function getWarningList()
64
    {
65
        return array();
66
 
67
    }//end getWarningList()
68
 
69
 
70
}//end class
71
 
72
?>