Description
Hello,
I configured the bundle as per the documentation (add the bundle AppKernel, add the listener in phpunit.xml.dist...) but it doesn't work.
From my own debugging of the bundle, the issue is that when StaticDriver::connect()
is called, self::$keepStaticConnections
is false, which makes this bundle do absolutely nothing.
I did find the place where the keepStaticConnections
is supposed to be set to true in PHPUnitListener
, but for some reason the change doesn't stay.
I dumped all the relevant places, the variables goes to true in the Listener
but it's back to false when connect()
is called.
Changing line 23 of StaticDriver
from private static $keepStaticConnections = false;
to private static $keepStaticConnections = true;
works.
I'm using PHPUnit 6.5 and PHP 7.2. Symfony is 3.4.
What am I missing ? Why is the static value change not sticking ?
Thanks.