Talking with chatgpt about my php unittests ... "You can not access the listen property, but call a listens method. And refactor the instantiation of the service provider into a exactly declared property named testedClass." ... done!