1 | <?php |
||
26 | class CodingStandard_Tests_PHP_NoSilencedErrorsUnitTest extends AbstractSniffUnitTest |
||
|
|||
27 | { |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Returns the lines where errors should occur. |
||
32 | * |
||
33 | * The key of the array should represent the line number and the value |
||
34 | * should represent the number of errors that should occur on that line. |
||
35 | * |
||
36 | * @param string $testFile Name of the file with test data. |
||
37 | * |
||
38 | * @return array<int, int> |
||
39 | */ |
||
40 | public function getErrorList($testFile) |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Returns the lines where warnings should occur. |
||
49 | * |
||
50 | * The key of the array should represent the line number and the value |
||
51 | * should represent the number of warnings that should occur on that line. |
||
52 | * |
||
53 | * @param string $testFile Name of the file with test data. |
||
54 | * |
||
55 | * @return array<int, int> |
||
56 | */ |
||
57 | public function getWarningList($testFile) |
||
65 | |||
66 | |||
67 | }//end class |
||
68 | |||
70 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.