~ubuntu-branches/ubuntu/wily/php-codesniffer/wily

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-2.3.3/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php

  • Committer: Package Import Robot
  • Author(s): David Prévot, Greg Sherwood
  • Date: 2015-06-24 13:41:36 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150624134136-dv60dnl6s20tdxwr
Tags: 2.3.3-1
[ Greg Sherwood ]
Prepare for 2.3.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Unit test class for FunctionCommentSniff.
 
4
 *
 
5
 * PHP version 5
 
6
 *
 
7
 * @category  PHP
 
8
 * @package   PHP_CodeSniffer
 
9
 * @author    Greg Sherwood <gsherwood@squiz.net>
 
10
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 
11
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 
12
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 
13
 */
 
14
 
 
15
/**
 
16
 * Unit test class for FunctionCommentSniff.
 
17
 *
 
18
 * @category  PHP
 
19
 * @package   PHP_CodeSniffer
 
20
 * @author    Greg Sherwood <gsherwood@squiz.net>
 
21
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 
22
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 
23
 * @version   Release: 2.3.3
 
24
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 
25
 */
 
26
class MySource_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest
 
27
{
 
28
 
 
29
 
 
30
    /**
 
31
     * Returns the lines where errors should occur.
 
32
     *
 
33
     * The key of the array should represent the line number and the value
 
34
     * should represent the number of errors that should occur on that line.
 
35
     *
 
36
     * @return array<int, int>
 
37
     */
 
38
    public function getErrorList()
 
39
    {
 
40
        return array(
 
41
                28 => 1,
 
42
                36 => 1,
 
43
                37 => 2,
 
44
                49 => 1,
 
45
                58 => 1,
 
46
               );
 
47
 
 
48
    }//end getErrorList()
 
49
 
 
50
 
 
51
    /**
 
52
     * Returns the lines where warnings should occur.
 
53
     *
 
54
     * The key of the array should represent the line number and the value
 
55
     * should represent the number of warnings that should occur on that line.
 
56
     *
 
57
     * @return array<int, int>
 
58
     */
 
59
    public function getWarningList()
 
60
    {
 
61
        return array();
 
62
 
 
63
    }//end getWarningList()
 
64
 
 
65
 
 
66
}//end class
 
67
 
 
68
?>