Run Rector on your code to see what it can do for you:

 
 final class ExampleTest extends TestCase
 {
-    /**
-     * there is some comment with something@test
-     */
-    private function someFunction()
-    {
-        return true;
-    }
-    
     public function testSomething()
     {
         $this->assertTrue($this->someFunction());
     }      
 }
PHP snippet to change
Config  rector.php
Rector version: 01a643 - released at 2026-05-06 21:56