replacement @expectedException to setExpectedException from testInitSetDefaultLangNotInLocales()

This commit is contained in:
Vyacheslav Agafonov
2011-12-01 11:28:48 +04:00
parent ece71411bd
commit 9b9dcf42d4

View File

@ -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'));