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

ArrayDoubleArrowAlignmentUnitTest::getErrorList()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 45
Code Lines 40

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
cc 3
eloc 40
c 2
b 1
f 1
nc 3
nop 1
dl 0
loc 45
rs 9.28
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\Arrays;
16
17
use MO4\Tests\AbstractMo4SniffUnitTest;
18
19
/**
20
 * Unit test class for @see ArrayDoubleArrowAlignmentSniff
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 2013-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 ArrayDoubleArrowAlignmentUnitTest extends AbstractMo4SniffUnitTest
34
{
35
    protected $expectedErrorList = [
36
        'ArrayDoubleArrowAlignmentUnitTest.pass.inc' => [],
37
        'ArrayDoubleArrowAlignmentUnitTest.fail.inc' => [
38
            5   => 1,
39
            10  => 1,
40
            17  => 2,
41
            18  => 2,
42
            22  => 1,
43
            28  => 1,
44
            38  => 1,
45
            43  => 1,
46
            45  => 1,
47
            49  => 1,
48
            51  => 1,
49
            58  => 1,
50
            59  => 1,
51
            61  => 1,
52
            67  => 1,
53
            70  => 1,
54
            71  => 1,
55
            73  => 1,
56
            82  => 1,
57
            83  => 1,
58
            85  => 1,
59
            93  => 1,
60
            94  => 1,
61
            97  => 1,
62
            105 => 1,
63
            130 => 1,
64
            132 => 1,
65
            134 => 1,
66
            136 => 2,
67
            140 => 1,
68
            141 => 1,
69
            145 => 2,
70
            149 => 1,
71
        ],
72
    ];
73
}
74