To use the listener add it to your phpunit.xml, defining on which test suites it should be activated, if it should seed data and the database connection to use ...
When the internet disconnects, the Firebase Realtime Database listener crashes, even with try and except statements. The application fails to recover and reconnect the listeners, resulting in the ...