New file |
0,0 → 1,81 |
<?php |
/** |
* Unit test class for the EmptyStatement sniff. |
* |
* PHP version 5 |
* |
* @category PHP |
* @package PHP_CodeSniffer |
* @author Greg Sherwood <gsherwood@squiz.net> |
* @author Manuel Pichler <mapi@manuel-pichler.de> |
* @copyright 2007-2008 Manuel Pichler. All rights reserved. |
* @license http://www.opensource.org/licenses/bsd-license.php BSD License |
* @version CVS: $Id: EmptyStatementUnitTest.php,v 1.1 2008/02/06 02:38:36 squiz Exp $ |
* @link http://pear.php.net/package/PHP_CodeSniffer |
*/ |
|
/** |
* Unit test class for the EmptyStatement sniff. |
* |
* A sniff unit test checks a .inc file for expected violations of a single |
* coding standard. Expected errors and warnings are stored in this class. |
* |
* @category PHP |
* @package PHP_CodeSniffer |
* @author Manuel Pichler <mapi@manuel-pichler.de> |
* @copyright 2007-2008 Manuel Pichler. All rights reserved. |
* @license http://www.opensource.org/licenses/bsd-license.php BSD License |
* @version Release: 1.2.0RC1 |
* @link http://pear.php.net/package/PHP_CodeSniffer |
*/ |
class Generic_Tests_CodeAnalysis_EmptyStatementUnitTest 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( |
64 => 1, |
68 => 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( |
3 => 1, |
15 => 1, |
17 => 1, |
19 => 1, |
30 => 1, |
35 => 1, |
41 => 1, |
47 => 1, |
52 => 1, |
55 => 1, |
); |
|
}//end getWarningList() |
|
|
}//end class |
|
?> |