1 | <?php |
||
16 | class ClassOpenerTestCase extends TestCase |
||
17 | { |
||
18 | |||
19 | const ANNOTATION_NAME = 'disableFinal'; |
||
20 | |||
21 | /** |
||
22 | * Open all class which are defined in the @disableFinal annotation |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | 3 | protected function checkRequirements() |
|
36 | |||
37 | /** |
||
38 | * Open the provided final classes for the further modification |
||
39 | * |
||
40 | * @param array $classesNames Name of the classes which should be opened, a fully |
||
41 | * qualified class names must be provided in the array |
||
42 | * eg.: ['foo\bar\qaz', ...] |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | 2 | protected function openClasses(array $classesNames) |
|
53 | |||
54 | /** |
||
55 | * Extract specific annotations from the class |
||
56 | * |
||
57 | * @param array $annotations Annotations for this test. |
||
58 | * |
||
59 | * @return array Extract annotation, empty array, if there are not any annotations |
||
60 | */ |
||
61 | 3 | private function extractDisableFinalNamesAnnotations(array $annotations) : array |
|
69 | } |
||
70 |