code()); } public function test_from_throwable_returns_error_message(): void { $original = new RuntimeException('some message', 1337); $message = ThrowableMessage::from($original); self::assertSame('some message', $message->getMessage()); self::assertSame('1337', $message->code()); } }