FileCommentUnitTest.php in Coder 7.2
File
coder_sniffer/Test/Commenting/FileCommentUnitTest.phpView source
<?php
class Drupal_Sniffs_Commenting_FileCommentUnitTest extends CoderSniffUnitTest {
/**
* 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($testFile) {
switch ($testFile) {
case 'FileCommentUnitTest.inc':
return array(
1 => 1,
);
case 'FileCommentUnitTest.1.inc':
return array(
2 => 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($testFile) {
return array();
}
}
//end class
Classes
Name | Description |
---|---|
Drupal_Sniffs_Commenting_FileCommentUnitTest |