diff --git a/tests/i18n/I18NTest.php b/tests/i18n/I18NTest.php index 593c9ed..a172c43 100644 --- a/tests/i18n/I18NTest.php +++ b/tests/i18n/I18NTest.php @@ -84,10 +84,10 @@ class I18NTest extends PHPUnit_Framework_TestCase /** * @runInSeparateProcess - * @expectedException PHPUnit_Framework_Error */ public function testInitSetDefaultLangNotInLocales() { + $this->setExpectedException('PHPUnit_Framework_Error'); $this->setConstants(); Config::set('I18N', array('locales' => array('rus' => 'ru_RU'), 'default' => 'ru'));