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.inc | 19 ++++++++ .../phpbb/Tests/Commenting/FileCommentUnitTest.php | 51 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc create mode 100644 build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php (limited to 'build/code_sniffer/phpbb/Tests') diff --git a/build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc b/build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc new file mode 100644 index 0000000000..0ace1c1bda --- /dev/null +++ b/build/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() +} -- cgit v1.2.1