@@ -221,44 +221,52 @@ public function testAllMethodsArePure(): void
221221 $ this ->treatPhpDocTypesAsCertain = true ;
222222 $ this ->analyse ([__DIR__ . '/data/all-methods-are-pure.php ' ], [
223223 [
224- 'Method AllMethodsArePure\Foo::test () is marked as pure but returns void. ' ,
225- 10 ,
224+ 'Method AllMethodsArePure\Foo::pureVoid () is marked as pure but returns void. ' ,
225+ 30 ,
226226 ],
227227 [
228- 'Method AllMethodsArePure\Foo::pure () is marked as pure but returns void . ' ,
229- 17 ,
228+ 'Method AllMethodsArePure\Foo::impure () is marked as impure but does not have any side effects . ' ,
229+ 37 ,
230230 ],
231231 [
232- 'Method AllMethodsArePure\Foo::impure () is marked as impure but does not have any side effects. ' ,
233- 24 ,
232+ 'Method AllMethodsArePure\Foo::impureVoid () is marked as impure but does not have any side effects. ' ,
233+ 45 ,
234234 ],
235235 [
236236 'Method AllMethodsArePure\Bar::test() is marked as impure but does not have any side effects. ' ,
237- 34 ,
237+ 55 ,
238238 ],
239239 [
240- 'Method AllMethodsArePure\Bar::pure() is marked as pure but returns void. ' ,
241- 41 ,
240+ 'Method AllMethodsArePure\Bar::testVoid() is marked as impure but does not have any side effects. ' ,
241+ 60 ,
242+ ],
243+ [
244+ 'Method AllMethodsArePure\Bar::pureVoid() is marked as pure but returns void. ' ,
245+ 75 ,
242246 ],
243247 [
244248 'Method AllMethodsArePure\Bar::impure() is marked as impure but does not have any side effects. ' ,
245- 48 ,
249+ 82 ,
250+ ],
251+ [
252+ 'Method AllMethodsArePure\Bar::impureVoid() is marked as impure but does not have any side effects. ' ,
253+ 90 ,
246254 ],
247255 [
248256 'Impure call to method AllMethodsArePure\Test::impure() in pure method AllMethodsArePure\SideEffectPure::nothingWithImpure(). ' ,
249- 78 ,
257+ 120 ,
250258 ],
251259 [
252260 'Method AllMethodsArePure\SideEffectPure::impureWithPure() is marked as impure but does not have any side effects. ' ,
253- 88 ,
261+ 130 ,
254262 ],
255263 [
256264 'Method AllMethodsArePure\SideEffectImpure::nothingWithPure() is marked as impure but does not have any side effects. ' ,
257- 101 ,
265+ 143 ,
258266 ],
259267 [
260268 'Impure call to method AllMethodsArePure\Test::impure() in pure method AllMethodsArePure\SideEffectImpure::pureWithImpure(). ' ,
261- 106 ,
269+ 148 ,
262270 ],
263271 ]);
264272 }
0 commit comments