-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathEscapingVoidReturnFunctionsUnitTest.php
More file actions
60 lines (55 loc) · 1.12 KB
/
EscapingVoidReturnFunctionsUnitTest.php
File metadata and controls
60 lines (55 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Unit test class for WordPressVIPMinimum Coding Standard.
*
* @package VIPCS\WordPressVIPMinimum
*/
namespace WordPressVIPMinimum\Tests\Security;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
/**
* Unit test class for the EscapingVoidReturnFunctions sniff.
*
* @covers \WordPressVIPMinimum\Sniffs\Security\EscapingVoidReturnFunctionsSniff
*/
class EscapingVoidReturnFunctionsUnitTest extends AbstractSniffUnitTest {
/**
* Returns the lines where errors should occur.
*
* @return array<int, int> Key is the line number, value is the number of expected errors.
*/
public function getErrorList() {
return [
50 => 1,
51 => 1,
52 => 1,
53 => 1,
54 => 1,
55 => 1,
56 => 1,
57 => 1,
58 => 1,
59 => 1,
60 => 1,
61 => 1,
62 => 1,
63 => 1,
64 => 1,
65 => 1,
68 => 1,
72 => 1,
73 => 1,
77 => 1,
90 => 1,
91 => 1,
92 => 1,
];
}
/**
* Returns the lines where warnings should occur.
*
* @return array<int, int> Key is the line number, value is the number of expected warnings.
*/
public function getWarningList() {
return [];
}
}