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

VariableInDoubleQuotedStringUnitTest::getWarningList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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\Strings;
16
17
use MO4\Tests\AbstractMo4SniffUnitTest;
18
19
/**
20
 * Unit test class for the VariableInDoubleQuotedString 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 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 VariableInDoubleQuotedStringUnitTest extends AbstractMo4SniffUnitTest
34
{
35
    protected $expectedErrorList = [
36
        'VariableInDoubleQuotedStringUnitTest.pass.inc' => [],
37
        'VariableInDoubleQuotedStringUnitTest.fail.inc' => [
38
            3  => 1,
39
            4  => 1,
40
            5  => 2,
41
            6  => 2,
42
            7  => 1,
43
            8  => 1,
44
            9  => 1,
45
            10 => 1,
46
            11 => 1,
47
        ],
48
    ];
49
}
50