public function SpyEventDispatcher::addSubscriber in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/SpyEventDispatcher.php \Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\SpyEventDispatcher::addSubscriber()
Mock.
@inheritdoc
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ SpyEventDispatcher.php, line 100
Class
- SpyEventDispatcher
- Class SpyEventDispatcher.
Namespace
Drupal\Tests\preprocess_event_dispatcher\Unit\HelpersCode
public function addSubscriber(EventSubscriberInterface $subscriber) : void {
throw new BadMethodCallException('This spy does not support this call');
}