Moving eventPhase mocking out of the polyfill and into src