<commit_before><?php

class CM_Mail_WelcomeTest extends CMTest_TestCase {

    public function testRenderTranslated() {
        $recipient = CMTest_TH::createUser();
        $mail = new CM_Mail_Welcome($recipient);
        $language = CM_Model_Language::create('Test language', 'foo', true);
        $language->setTranslation('Welcome to {$siteName}!', 'foo');

        $mailRendered = $mail->render();
        $nodeList = new CM_Dom_NodeList(htmlspecialchars($mailRendered[1]));

        $this->assertContains('foo', $nodeList->getText());
    }
}<commit_msg>use "list" to assign vars<commit_after><?php

class CM_Mail_WelcomeTest extends CMTest_TestCase {

    public function testRenderTranslated() {
        $recipient = CMTest_TH::createUser();
        $mail = new CM_Mail_Welcome($recipient);
        $language = CM_Model_Language::create('Test language', 'foo', true);
        $language->setTranslation('Welcome to {$siteName}!', 'foo');

        list($subject, $html, $text) = $mail->render();
        $nodeList = new CM_Dom_NodeList(htmlspecialchars($html));

        $this->assertContains('foo', $nodeList->getText());
    }
}
{'fraction_non_alphanumeric': 0.15316901408450703, 'fraction_numerical': 0.0008802816901408451, 'mean_word_length': 4.053333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '114614', 'n_tokens_mistral': 347, 'n_tokens_neox': 329, 'n_words': 64}