Completed
Push — master ( 8cd077...c823b8 )
by Tomáš
14:59 queued 07:26
created

OneTraitPerFileUnitTest::shouldSkipTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Unit test class for the OneTraitPerFile sniff.
4
 *
5
 * @author    Alexander Obuhovich <[email protected]>
6
 * @copyright 2010-2014 Alexander Obuhovich
7
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
8
 */
9
10
namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
11
12
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
13
14
class OneTraitPerFileUnitTest extends AbstractSniffUnitTest
15
{
16
17
18
    /**
19
     * Returns the lines where errors should occur.
20
     *
21
     * The key of the array should represent the line number and the value
22
     * should represent the number of errors that should occur on that line.
23
     *
24
     * @return array(int => int)
0 ignored issues
show
Documentation introduced by
The doc-type array(int could not be parsed: Expected "|" or "end of type", but got "(" at position 5. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
25
     */
26
    public function getErrorList()
27
    {
28
        return array(
29
                6  => 1,
30
                10 => 1,
31
               );
32
33
    }//end getErrorList()
34
35
36
    /**
37
     * Returns the lines where warnings should occur.
38
     *
39
     * The key of the array should represent the line number and the value
40
     * should represent the number of warnings that should occur on that line.
41
     *
42
     * @return array(int => int)
0 ignored issues
show
Documentation introduced by
The doc-type array(int could not be parsed: Expected "|" or "end of type", but got "(" at position 5. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
43
     */
44
    public function getWarningList()
45
    {
46
        return array();
47
48
    }//end getWarningList()
49
50
51
}//end class
52