1 | <?php |
||
27 | class OneTraitPerFileUnitTest extends AbstractSniffUnitTest |
||
28 | { |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Should this test be skipped for some reason. |
||
33 | * |
||
34 | * @return bool |
||
35 | */ |
||
36 | protected function shouldSkipTest() |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Returns the lines where errors should occur. |
||
44 | * |
||
45 | * The key of the array should represent the line number and the value |
||
46 | * should represent the number of errors that should occur on that line. |
||
47 | * |
||
48 | * @param string $testFile Name of the file with test data. |
||
49 | * |
||
50 | * @return array(int => int) |
||
51 | */ |
||
52 | public function getErrorList($testFile) |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Returns the lines where warnings should occur. |
||
63 | * |
||
64 | * The key of the array should represent the line number and the value |
||
65 | * should represent the number of warnings that should occur on that line. |
||
66 | * |
||
67 | * @param string $testFile Name of the file with test data. |
||
68 | * |
||
69 | * @return array(int => int) |
||
70 | */ |
||
71 | public function getWarningList($testFile) |
||
75 | }//end class |
||
76 |