From 7fb3676957fa8e489a49dc446c356fef888b4d60 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sun, 27 Oct 2013 17:14:20 +0100 Subject: [task/code-sniffer] Move code sniffer below build folder. PHPBB3-11980 --- .../phpbb/Tests/Commenting/FileCommentUnitTest.php | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php (limited to 'build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php') diff --git a/build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php b/build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php new file mode 100644 index 0000000000..affa27b56c --- /dev/null +++ b/build/code_sniffer/phpbb/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() +} -- cgit v1.2.1