DDD\Domain\DomainEventPublisherTest::itShouldNotifySubscriber PHP Method

itShouldNotifySubscriber() public method

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