1 | <?php |
||
18 | class AssetTransformTest extends Unit |
||
19 | { |
||
20 | /** |
||
21 | * @var AssetTransforms |
||
22 | */ |
||
23 | private $converter; |
||
24 | |||
25 | /** |
||
26 | * Set the converter. |
||
27 | * |
||
28 | * @SuppressWarnings(PHPMD.CamelCaseMethodName) |
||
29 | */ |
||
30 | protected function _before() |
||
34 | |||
35 | //============================================================================================================== |
||
36 | //================================================= TESTS ==================================================== |
||
37 | //============================================================================================================== |
||
38 | |||
39 | /** |
||
40 | * @dataProvider provideAssetTransforms |
||
41 | * |
||
42 | * @param AssetTransformModel $transform |
||
43 | * @param array $definition |
||
44 | */ |
||
45 | public function testGetRecordDefinition(AssetTransformModel $transform, array $definition) |
||
51 | |||
52 | /** |
||
53 | * @dataProvider provideAssetTransforms |
||
54 | * |
||
55 | * @param AssetTransformModel $transform |
||
56 | * @param array $definition |
||
57 | */ |
||
58 | public function testSaveRecord(AssetTransformModel $transform, array $definition) |
||
69 | |||
70 | /** |
||
71 | * @dataProvider provideAssetTransforms |
||
72 | * |
||
73 | * @param AssetTransformModel $transform |
||
74 | */ |
||
75 | public function testDeleteRecord(AssetTransformModel $transform) |
||
83 | |||
84 | //============================================================================================================== |
||
85 | //============================================== PROVIDERS =================================================== |
||
86 | //============================================================================================================== |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function provideAssetTransforms() |
||
102 | |||
103 | //============================================================================================================== |
||
104 | //================================================ HELPERS =================================================== |
||
105 | //============================================================================================================== |
||
106 | |||
107 | /** |
||
108 | * @param int $assetTransformId |
||
109 | * |
||
110 | * @return AssetTransformModel |
||
111 | */ |
||
112 | private function getMockAssetTransform(int $assetTransformId) |
||
120 | |||
121 | /** |
||
122 | * @param AssetTransformModel $assetTransform |
||
123 | * |
||
124 | * @return array |
||
125 | */ |
||
126 | private function getMockAssetTransformDefinition(AssetTransformModel $assetTransform) |
||
143 | } |
||
144 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..