protected function setUp() { parent::setUp(); $this->emitter = new DummyLegacyEmitter(); self::$emitted = false; \OC_Hook::clear('Test', 'test'); }
/** * @param string $scope * @param string $method * @param callable $callback */ public function listen($scope, $method, $callback) { parent::listen($scope, $method, $callback); foreach ($this->forwardEmitters as $emitter) { $emitter->listen($scope, $method, $callback); } }
protected function emit($scope, $method, $arguments = array()) { \OC_Hook::emit($scope, $method, $arguments); parent::emit($scope, $method, $arguments); }
/** * @param string $scope * @param string $method * @param array $arguments optional */ public function emit($scope, $method, array $arguments = array()) { parent::emit($scope, $method, $arguments); }