I currently have a problem that I have to work around in legacy code to get our interaction with a PHP Extension to work properly (Singleton Testing Question).
As su
If you're using Laravel than use App::runningUnitTests()
App::runningUnitTests()