Commit 2841dd5
committed
test: remove all remaining ReflectionProperty/Method::setAccessible() calls and stale PHPUnit annotations
setAccessible() is a no-op since PHP 8.1 and removed in PHP 8.5. Removes
remaining calls across the three files that still had them:
- EncryptionTest.php: collapse 18 setAccessible(true/false) pairs by
calling setValue/getValue directly on the ReflectionProperty (no need
to open/close access around each call)
- ResourceLocatorTest.php: remove the single no-op setAccessible(true)
on a ReflectionMethod
Also clean up PHPUnit annotation noise in the same pass:
- S3SSEKMSTest.php: remove duplicate @dataProvider doc-comment annotations
where #[DataProvider] PHP attributes are already present
- ManagerTest.php: delete four fully commented-out test methods that used
the deprecated @expectedException/@expectedExceptionMessage doc-comment
style; all four scenarios are covered by the active equivalents in the
same file (testModuleReRegistration, testModuleUnRegistration,
testGetEncryptionModuleUnknown, testGetEncryptionModule)
Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0da9913 commit 2841dd5
4 files changed
Lines changed: 9 additions & 107 deletions
File tree
- tests/lib
- Encryption
- Files
- ObjectStore
- Stream
- Template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 202 | | |
261 | 203 | | |
262 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
256 | 251 | | |
257 | 252 | | |
258 | 253 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | 254 | | |
265 | 255 | | |
266 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
174 | 156 | | |
175 | 157 | | |
176 | 158 | | |
| |||
180 | 162 | | |
181 | 163 | | |
182 | 164 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
197 | 168 | | |
198 | 169 | | |
199 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
0 commit comments