diff options
author | Nils Adermann <naderman@naderman.de> | 2008-05-04 20:06:02 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2008-05-04 20:06:02 +0000 |
commit | 0d631c2ae01f3e8b299f63ec3949c688e6a479a8 (patch) | |
tree | 0399b76bf16bebc689ca061aeb2c35703c053428 /code_sniffer/phpbb/Tests/Commenting | |
parent | 1219ff4717fe9b81995cd490458c66bc3c7dda84 (diff) | |
download | forums-0d631c2ae01f3e8b299f63ec3949c688e6a479a8.tar forums-0d631c2ae01f3e8b299f63ec3949c688e6a479a8.tar.gz forums-0d631c2ae01f3e8b299f63ec3949c688e6a479a8.tar.bz2 forums-0d631c2ae01f3e8b299f63ec3949c688e6a479a8.tar.xz forums-0d631c2ae01f3e8b299f63ec3949c688e6a479a8.zip |
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
Diffstat (limited to 'code_sniffer/phpbb/Tests/Commenting')
-rw-r--r-- | code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.inc | 19 | ||||
-rw-r--r-- | code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php | 51 |
2 files changed, 70 insertions, 0 deletions
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 @@ +<?php +/** +* +* @package code_sniffer³ +* @version $Id: $ +* @copyright (c) 2008 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php BSD License + * +*/ +?> +<?php +/** +* Broken but not first file doc comment. +* +* @version @package_version@ +* @license http://www.opensource.org/licenses/bsd-license.php BSD License +* @copyright (c) 2007 phpBB Group +* +*/ diff --git a/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php b/code_sniffer/phpbb/Tests/Commenting/FileCommentUnitTest.php new file mode 100644 index 0000000000..849a7fb9a0 --- /dev/null +++ b/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-license.php GNU Public License +* +*/ + +/** +* 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() +}
\ No newline at end of file |