From c34599126fe8a7d38b604ceb92136be6a6c89ee8 Mon Sep 17 00:00:00 2001 From: Manuel Pichler Date: Sat, 15 Mar 2008 01:01:15 +0000 Subject: - First PHP_CodeSniffer rule added that checks all files for a valid file doc comment as specified in "1.ii. File Header" of the phpBB Coding Guidelines. git-svn-id: file:///svn/phpbb/trunk@8435 89ea8834-ac86-4346-8a33-228a782c2dd0 --- .../Tests/Commenting/FileCommentUnitTest.php | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 code_sniffer/Tests/Commenting/FileCommentUnitTest.php (limited to 'code_sniffer/Tests/Commenting/FileCommentUnitTest.php') diff --git a/code_sniffer/Tests/Commenting/FileCommentUnitTest.php b/code_sniffer/Tests/Commenting/FileCommentUnitTest.php new file mode 100644 index 0000000000..849a7fb9a0 --- /dev/null +++ b/code_sniffer/Tests/Commenting/FileCommentUnitTest.php @@ -0,0 +1,51 @@ + +*/ +class phpbb_Tests_Commenting_FileCommentUnitTest 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( + 7 => 1 // BSD License error :) + ); + }//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( + 4 => 1, + 8 => 1 + ); + }//end getWarningList() +} \ No newline at end of file -- cgit v1.2.1