public function itShouldNotifySubscriber() { $this->subscribe($subscriber = new SpySubscriber('test-event')); $this->publish($domainEvent = new FakeDomainEvent('test-event')); $this->assertEventHandled($subscriber, $domainEvent); }