-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathOrderByRandUnitTest.php
More file actions
43 lines (38 loc) · 904 Bytes
/
OrderByRandUnitTest.php
File metadata and controls
43 lines (38 loc) · 904 Bytes
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
<?php
/**
* Unit test class for WordPressVIPMinimum Coding Standard.
*
* @package VIPCS\WordPressVIPMinimum
*/
namespace WordPressVIPMinimum\Tests\Performance;
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
/**
* Unit test class for the OrderByRand sniff.
*
* @covers \WordPressVIPMinimum\Sniffs\Performance\OrderByRandSniff
*/
class OrderByRandUnitTest 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 [
4 => 1,
5 => 1,
6 => 1,
9 => 1,
11 => 1,
16 => 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 [];
}
}