Don't use cli to test sniffs, but real unit tests
We are using phpcs cli calls and compare generated output with expected output. That tests are slow as phpcs has to be called through cli at least twice per sniff.
We should check whether it's possible to use phpunit without cli calls. This makes execution of tests faster and provides code coverage.
Some resources that might be helpful: