diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-27 17:14:20 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-27 17:42:49 +0100 |
commit | 7fb3676957fa8e489a49dc446c356fef888b4d60 (patch) | |
tree | 57a6d6b2a8c4f0df249e1b36b1284552299aab81 /build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php | |
parent | b0e0834637172c86f3a152034d77d558e95b2e61 (diff) | |
download | forums-7fb3676957fa8e489a49dc446c356fef888b4d60.tar forums-7fb3676957fa8e489a49dc446c356fef888b4d60.tar.gz forums-7fb3676957fa8e489a49dc446c356fef888b4d60.tar.bz2 forums-7fb3676957fa8e489a49dc446c356fef888b4d60.tar.xz forums-7fb3676957fa8e489a49dc446c356fef888b4d60.zip |
[task/code-sniffer] Move code sniffer below build folder.
PHPBB3-11980
Diffstat (limited to 'build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php')
-rw-r--r-- | build/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php | 51 |
1 files changed, 51 insertions, 0 deletions
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 @@ +<?php +/** +* +* @package code_sniffer +* @version $Id: $ +* @copyright (c) 2007 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +/** +* Unit test class for the EmptyStatement sniff. +* +* @package code_sniffer +* @author Manuel Pichler <mapi@phpundercontrol.org> +*/ +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() +} |