/**
  * Assert that the saga published events on the EventBus as defined by the given <code>matcher</code>. Only events
  * published in the "when" stage of the tests are matched.
  *
  * @param Matcher $matcher The matcher that defines the expected list of published events.
  * @return FixtureExecutionResultInterface the FixtureExecutionResult for method chaining
  */
 public function expectPublishedEventsMatching(Matcher $matcher)
 {
     $this->eventValidator->assertPublishedEventsMatching($matcher);
     return $this;
 }
 /**
  * @expectedException \Governor\Framework\Test\GovernorAssertionError
  */
 public function testAssertPublishedEventsWithNoEventsMatcherThrowsAssertionErrorIfEventWasPublished()
 {
     $this->testSubject->handle(new GenericEventMessage(new MyOtherEvent()));
     $this->testSubject->assertPublishedEventsMatching(Matchers::noEvents());
 }