Blame | Last modification | View Log | RSS feed
<?php
/**
* Unit test class for ClassCommentSniff.
*
* 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: ClassCommentUnitTest.php,v 1.12 2008/02/06 02:54:57 squiz Exp $
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
/**
* Unit test class for ClassCommentSniff.
*
* @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_ClassCommentUnitTest 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(
4 => 1,
15 => 1,
22 => 1,
25 => 1,
28 => 1,
46 => 1,
51 => 1,
63 => 1,
65 => 2,
66 => 1,
68 => 2,
69 => 1,
70 => 1,
71 => 1,
73 => 2,
74 => 1,
76 => 1,
77 => 1,
78 => 1,
84 => 1,
92 => 1,
102 => 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(
70 => 1,
72 => 1,
);
}//end getWarningList()
}//end class
?>