public function test_that_hash_value_returns_expected_value() { $this->assertSame($this->message->toString(), $this->message->hashValue()); }
public function onAllEvents(EventMessage $message) { $this->logs[] = $message->toString(); }
/** * Logs the event message * * @param EventMessage $message The event message * * @return void */ public function logEvent(EventMessage $message) { $name = $message->payloadType()->toString(); $this->logger->info(sprintf('Event dispatched {%s}', $name), ['message' => $message->toString()]); }