<commit_before><?php

namespace atomasevic\MXLogin;

use yii\base\Exception;

function dns_get_mx($domain, &$mxHosts, &$mxWeight)
{
    $mxHosts[0] = ProvidersUnitTest::getMxDomainMock();
    return true;
}

class ProvidersUnitTest extends \Codeception\TestCase\Test
{

    private static $mxDomainMock = null;

    public static function getMxDomainMock()
    {
        if (self::$mxDomainMock == null) {
            throw new Exception('mx-domain mock not set');
        }
        return self::$mxDomainMock;
    }

    private function setMxDomainMock($mxDomain)
    {
        self::$mxDomainMock = $mxDomain;
    }

    /**
     * @var MXLoginUrls
     */
    private $mxLoginUrls;

    protected function _before()
    {
        $this->mxLoginUrls = new MXLoginUrls();<commit_msg>applied correct exception type<commit_after><?php

namespace atomasevic\MXLogin;

function dns_get_mx($domain, &$mxHosts, &$mxWeight)
{
    $mxHosts[0] = ProvidersUnitTest::getMxDomainMock();
    return true;
}

class ProvidersUnitTest extends \Codeception\TestCase\Test
{

    private static $mxDomainMock = null;

    public static function getMxDomainMock()
    {
        if (self::$mxDomainMock == null) {
            throw new \Exception('mx-domain mock not set');
        }
        return self::$mxDomainMock;
    }

    private function setMxDomainMock($mxDomain)
    {
        self::$mxDomainMock = $mxDomain;
    }

    /**
     * @var MXLoginUrls
     */
    private $mxLoginUrls;

    protected function _before()
    {
        $this->mxLoginUrls = new MXLoginUrls();
{'fraction_non_alphanumeric': 0.11516314779270634, 'fraction_numerical': 0.0012795905310300703, 'mean_word_length': 2.890547263681592, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1058242', 'n_tokens_mistral': 504, 'n_tokens_neox': 490, 'n_words': 102}