Blame | Last modification | View Log | RSS feed
<?php
/**
* Unit test class for FunctionCommentSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
* @version CVS: $Id: FunctionCommentUnitTest.php,v 1.16 2007/11/06 09:14:05 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
/**
* Unit test class for FunctionCommentSniff.
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
* @version Release: 1.2.0RC1
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
class PEAR_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest
{
/**
* Returns the lines where errors should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @return array(int => int)
*/
public function getErrorList()
{
return array(
10 => 1,
12 => 2,
13 => 2,
14 => 1,
15 => 1,
28 => 1,
35 => 1,
38 => 1,
41 => 1,
53 => 1,
103 => 1,
109 => 1,
112 => 1,
122 => 1,
123 => 3,
124 => 3,
125 => 5,
126 => 6,
139 => 1,
155 => 1,
165 => 1,
172 => 1,
183 => 1,
193 => 2,
204 => 1,
234 => 1,
);
}//end getErrorList()
/**
* Returns the lines where warnings should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @return array(int => int)
*/
public function getWarningList()
{
return array();
}//end getWarningList()
}//end class
?>