/** * @description Setting bad language throws exception */ function setbadlanguage() { intl::setLanguage('sv'); try { intl::setLanguage('swe'); } catch (Exception $e) { $this->assertEquals(intl::getLanguage(), 'sv'); return; } $this->explicitFail('No exception thrown'); }