The 3rd parameter of setConfigData allows specifying that this is a temporary setting. Otherwise PHP_CodeSniffer will write this to the permanent settings file, which is not ideal for these tests.