protected function getMessages(string $type): array
    {
        $messages = [];
        $suites = $this->isSingle ? $this->suites : $this->suites[0]->suites;
        foreach ($suites as $suite) {
            $messages = array_merge($messages, array_reduce($suite->cases, function ($result, $case) use ($type) {
                return array_merge($result, array_reduce($case->$type, function ($msgs, $msg) {
                    $msgs[] = $msg['text'];

                    return $msgs;
                }, []));
            }, []));
        }

        return $messages;
    }