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 the NoSilencedErrors 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
34 aurelien 12
 * @version   CVS: $Id: NoSilencedErrorsUnitTest.php 34 2009-04-09 07:34:39Z aurelien $
5 aurelien 13
 * @link      http://pear.php.net/package/PHP_CodeSniffer
14
 */
15
 
16
/**
17
 * Unit test class for the NoSilencedErrors 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.0RC1
28
 * @link      http://pear.php.net/package/PHP_CodeSniffer
29
 */
30
class Generic_Tests_PHP_NoSilencedErrorsUnitTest extends AbstractSniffUnitTest
31
{
32
 
33
 
34
    /**
35
     * Returns the lines where errors should occur.
36
     *
37
     * The key of the array should represent the line number and the value
38
     * should represent the number of errors that should occur on that line.
39
     *
40
     * @return array(int => int)
41
     */
42
    public function getErrorList()
43
    {
44
        return array();
45
 
46
    }//end getErrorList()
47
 
48
 
49
    /**
50
     * Returns the lines where warnings should occur.
51
     *
52
     * The key of the array should represent the line number and the value
53
     * should represent the number of warnings that should occur on that line.
54
     *
55
     * @return array(int => int)
56
     */
57
    public function getWarningList()
58
    {
59
        return array(
60
                5 => 1,
61
               );
62
 
63
    }//end getWarningList()
64
 
65
 
66
}//end class
67
 
68
?>