Add automated testing
Should be easy.
Just add two php files for each test. One with non migrated code, one with fixed code. Run phpcbf against the non migrated and compare both files.
For warnings we can add one non migrated code and check the cli output.