3
* Unit test class for the Fixme sniff.
8
* @package PHP_CodeSniffer
9
* @author Greg Sherwood <gsherwood@squiz.net>
10
* @author Marc McIntyre <mmcintyre@squiz.net>
11
* @author Sam Graham <php-codesniffer BLAHBLAH illusori.co.uk>
12
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
13
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
14
* @link http://pear.php.net/package/PHP_CodeSniffer
18
* Unit test class for the Fixme sniff.
20
* A sniff unit test checks a .inc file for expected violations of a single
21
* coding standard. Expected errors and warnings are stored in this class.
24
* @package PHP_CodeSniffer
25
* @author Greg Sherwood <gsherwood@squiz.net>
26
* @author Marc McIntyre <mmcintyre@squiz.net>
27
* @author Sam Graham <php-codesniffer BLAHBLAH illusori.co.uk>
28
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
29
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
30
* @version Release: 1.5.0RC2
31
* @link http://pear.php.net/package/PHP_CodeSniffer
33
class Generic_Tests_Commenting_FixmeUnitTest extends AbstractSniffUnitTest
38
* Returns the lines where errors should occur.
40
* The key of the array should represent the line number and the value
41
* should represent the number of errors that should occur on that line.
43
* @param string $testFile The name of the file being tested.
45
* @return array(int => int)
47
public function getErrorList($testFile='FixmeUnitTest.inc')
50
case 'FixmeUnitTest.inc':
61
case 'FixmeUnitTest.js':
81
* Returns the lines where warnings should occur.
83
* The key of the array should represent the line number and the value
84
* should represent the number of warnings that should occur on that line.
86
* @param string $testFile The name of the file being tested.
88
* @return array(int => int)
90
public function getWarningList($testFile='FixmeUnitTest.inc')
94
}//end getWarningList()