public function test_that_constructor_takes_message_as_argument() { $message = 'Something went wrong'; $exception = new EventStoreException($message); $this->assertSame($message, $exception->getMessage()); }