replacement @expectedException to setExpectedException from testInitSetDefaultLangNotInLocales()
This commit is contained in:
@ -84,10 +84,10 @@ class I18NTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @runInSeparateProcess
|
* @runInSeparateProcess
|
||||||
* @expectedException PHPUnit_Framework_Error
|
|
||||||
*/
|
*/
|
||||||
public function testInitSetDefaultLangNotInLocales()
|
public function testInitSetDefaultLangNotInLocales()
|
||||||
{
|
{
|
||||||
|
$this->setExpectedException('PHPUnit_Framework_Error');
|
||||||
$this->setConstants();
|
$this->setConstants();
|
||||||
|
|
||||||
Config::set('I18N', array('locales' => array('rus' => 'ru_RU'), 'default' => 'ru'));
|
Config::set('I18N', array('locales' => array('rus' => 'ru_RU'), 'default' => 'ru'));
|
||||||
|
Reference in New Issue
Block a user