Unlike unit tests, kernel tests are added to the right test group. That means they're run twice, once with phpunit and once with run-tests.sh