Use Civi::$statics instead of php static
This was driving me nuts trying to figure out why a test was failing. In tests, static vars carry over between tests. Using Civi::$statics it gets cleared between tests but otherwise functions the same.
This was driving me nuts trying to figure out why a test was failing. In tests, static vars carry over between tests. Using Civi::$statics it gets cleared between tests but otherwise functions the same.