~ubuntu-branches/ubuntu/trusty/php-codesniffer/trusty

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2013-07-12 15:16:25 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130712151625-4autdc0twzbueha9
Tags: 1.5.0~rc2-1
* New upstream release.
* Refreshed patch.
* Standards-Version is now 3.9.4.
* Canonical VCS URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * Unit test class for VariableCommentSniff.
4
 
 *
5
 
 * PHP version 5
6
 
 *
7
 
 * @category  PHP
8
 
 * @package   PHP_CodeSniffer
9
 
 * @author    Greg Sherwood <gsherwood@squiz.net>
10
 
 * @author    Marc McIntyre <mmcintyre@squiz.net>
11
 
 * @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
12
 
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
13
 
 * @link      http://pear.php.net/package/PHP_CodeSniffer
14
 
 */
15
 
 
16
 
/**
17
 
 * Unit test class for VariableCommentSniff.
18
 
 *
19
 
 * @category  PHP
20
 
 * @package   PHP_CodeSniffer
21
 
 * @author    Greg Sherwood <gsherwood@squiz.net>
22
 
 * @author    Marc McIntyre <mmcintyre@squiz.net>
23
 
 * @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
24
 
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
25
 
 * @version   Release: 1.3.4
26
 
 * @link      http://pear.php.net/package/PHP_CodeSniffer
27
 
 */
28
 
class Squiz_Tests_Commenting_VariableCommentUnitTest extends AbstractSniffUnitTest
29
 
{
30
 
 
31
 
 
32
 
    /**
33
 
     * Returns the lines where errors should occur.
34
 
     *
35
 
     * The key of the array should represent the line number and the value
36
 
     * should represent the number of errors that should occur on that line.
37
 
     *
38
 
     * @return array(int => int)
39
 
     */
40
 
    public function getErrorList()
41
 
    {
42
 
        return array(
43
 
                6   => 1,
44
 
                8   => 1,
45
 
                21  => 1,
46
 
                24  => 1,
47
 
                28  => 1,
48
 
                38  => 1,
49
 
                41  => 1,
50
 
                53  => 1,
51
 
                56  => 1,
52
 
                63  => 1,
53
 
                64  => 1,
54
 
                69  => 2,
55
 
                73  => 1,
56
 
                81  => 1,
57
 
                82  => 1,
58
 
                84  => 1,
59
 
                90  => 1,
60
 
                92  => 1,
61
 
                128 => 1,
62
 
                137 => 1,
63
 
                145 => 1,
64
 
                153 => 1,
65
 
                158 => 1,
66
 
                159 => 1,
67
 
                163 => 1,
68
 
                178 => 1,
69
 
                180 => 1,
70
 
                184 => 1,
71
 
               );
72
 
 
73
 
    }//end getErrorList()
74
 
 
75
 
 
76
 
    /**
77
 
     * Returns the lines where warnings should occur.
78
 
     *
79
 
     * The key of the array should represent the line number and the value
80
 
     * should represent the number of warnings that should occur on that line.
81
 
     *
82
 
     * @return array(int => int)
83
 
     */
84
 
    public function getWarningList()
85
 
    {
86
 
        return array(
87
 
                93 => 1,
88
 
               );
89
 
 
90
 
    }//end getWarningList()
91
 
 
92
 
 
93
 
}//end class
94
 
 
95
 
?>
 
 
b'\\ No newline at end of file'