Passed
Push — master ( b371b3...259207 )
by Michael
02:50 queued 15s
created

PropertyCommentUnitTest::getErrorList()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 21
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 3
eloc 16
c 2
b 1
f 0
nc 3
nop 1
dl 0
loc 21
rs 9.7333
1
<?php
2
3
/**
4
 * This file is part of the mo4-coding-standard (phpcs standard)
5
 *
6
 * @author  Xaver Loppenstedt <[email protected]>
7
 *
8
 * @license http://spdx.org/licenses/MIT MIT License
9
 *
10
 * @link    https://github.com/mayflower/mo4-coding-standard
11
 */
12
13
declare(strict_types=1);
14
15
namespace MO4\Tests\Commenting;
16
17
use MO4\Tests\AbstractMo4SniffUnitTest;
18
19
/**
20
 * Unit test class for the AlphabeticalUseStatements sniff.
21
 *
22
 * A sniff unit test checks a .inc file for expected violations of a single
23
 * coding standard. Expected errors and warnings are stored in this class.
24
 *
25
 * @author    Xaver Loppenstedt <[email protected]>
26
 *
27
 * @copyright 2014-2021 Xaver Loppenstedt, some rights reserved.
28
 *
29
 * @license   http://spdx.org/licenses/MIT MIT License
30
 *
31
 * @link      https://github.com/mayflower/mo4-coding-standard
32
 */
33
class PropertyCommentUnitTest extends AbstractMo4SniffUnitTest
34
{
35
    protected $expectedErrorList = [
36
        'PropertyCommentUnitTest.pass.inc' => [],
37
        'PropertyCommentUnitTest.fail.inc' => [
38
            7  => 1,
39
            10 => 1,
40
            17 => 1,
41
            26 => 2,
42
            29 => 1,
43
            34 => 1,
44
            37 => 2,
45
            41 => 1,
46
            44 => 1,
47
        ],
48
    ];
49
}
50