Set dispatcher to TestCase.
If TestCase is instance of EventSubscriberInterface, class will be added as subscriber.