From 0d631c2ae01f3e8b299f63ec3949c688e6a479a8 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 4 May 2008 20:06:02 +0000 Subject: Moving code sniffer stuff into subfolder so directory can be linked and doesn't require copying git-svn-id: file:///svn/phpbb/trunk@8548 89ea8834-ac86-4346-8a33-228a782c2dd0 --- .../phpbb/Tests/Commenting/FileCommentUnitTest.inc | 19 ++++++++ .../phpbb/Tests/Commenting/FileCommentUnitTest.php | 51 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc create mode 100644 code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php (limited to 'code_sniffer/phpbb/Tests/Commenting') diff --git a/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc b/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc new file mode 100644 index 0000000000..0ace1c1bda --- /dev/null +++ b/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc @@ -0,0 +1,19 @@ + + +*/ +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