3
* Unit test class for FunctionCommentSniff.
8
* @package PHP_CodeSniffer
9
* @author Greg Sherwood <gsherwood@squiz.net>
10
* @author Marc McIntyre <mmcintyre@squiz.net>
11
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
12
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
13
* @link http://pear.php.net/package/PHP_CodeSniffer
17
* Unit test class for FunctionCommentSniff.
21
* <li>A doc comment exists.</li>
22
* <li>Short description must start with a capital letter and end with a period.</li>
23
* <li>There must be one blank newline after the short description.</li>
24
* <li>A PHP version is specified.</li>
25
* <li>Check the order of the tags.</li>
26
* <li>Check the indentation of each tag.</li>
27
* <li>Check required and optional tags and the format of their content.</li>
31
* @package PHP_CodeSniffer
32
* @author Greg Sherwood <gsherwood@squiz.net>
33
* @author Marc McIntyre <mmcintyre@squiz.net>
34
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
35
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
36
* @version Release: 1.5.4
37
* @link http://pear.php.net/package/PHP_CodeSniffer
39
class PEAR_Tests_Commenting_FileCommentUnitTest extends AbstractSniffUnitTest
44
* Returns the lines where errors should occur.
46
* The key of the array should represent the line number and the value
47
* should represent the number of errors that should occur on that line.
49
* @return array<int, int>
51
public function getErrorList()
76
* Returns the lines where warnings should occur.
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.
81
* @return array<int, int>
83
public function getWarningList()
92
}//end getWarningList()