3
* Unit test class for FunctionCommentThrowTagSniff.
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
13
* @version CVS: $Id: FunctionCommentThrowTagUnitTest.php,v 1.4 2007/11/27 23:49:02 squiz Exp $
14
* @link http://pear.php.net/package/PHP_CodeSniffer
18
* Unit test class for FunctionCommentThrowTagSniff.
22
* <li>A @throws tag exists for a function that throws exceptions.</li>
23
* <li>The number of @throws tags and the number of throw tokens matches.</li>
24
* <li>The exception type in comment matches the token.</li>
28
* @package PHP_CodeSniffer
29
* @author Greg Sherwood <gsherwood@squiz.net>
30
* @author Marc McIntyre <mmcintyre@squiz.net>
31
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
32
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
33
* @version Release: 1.1.0
34
* @link http://pear.php.net/package/PHP_CodeSniffer
36
class Squiz_Tests_Commenting_FunctionCommentThrowTagUnitTest extends AbstractSniffUnitTest
41
* Returns the lines where errors should occur.
43
* The key of the array should represent the line number and the value
44
* should represent the number of errors that should occur on that line.
46
* @return array(int => int)
48
public function getErrorList()
65
* Returns the lines where warnings should occur.
67
* The key of the array should represent the line number and the value
68
* should represent the number of warnings that should occur on that line.
70
* @return array(int => int)
72
public function getWarningList()
76
}//end getWarningList()