protected function setUp() { parent::setUp(); $this->emitter = new DummyLegacyEmitter(); self::$emitted = false; \OC_Hook::clear('Test', 'test'); }