Просмотр исходного кода

[ZF-11837] Unit Test Update

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24520 44c647ce-9c0f-0410-b52a-842ac1e357ba
adamlundrigan 14 лет назад
Родитель
Сommit
1a6f4f0605
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tests/Zend/Locale/FormatTest.php

+ 2 - 1
tests/Zend/Locale/FormatTest.php

@@ -1100,7 +1100,8 @@ class Zend_Locale_FormatTest extends PHPUnit_Framework_TestCase
     public function testCheckDateFormatDoesNotEmitNoticeWhenNoOptionsAreNotProvided()
     {
         try {
-            Zend_Locale_Format::checkDateFormat('2011/10/21', array());
+            setlocale(LC_ALL, 'en_US'); // test setup
+            $this->assertTrue(Zend_Locale_Format::checkDateFormat('2011/10/21', array()));
         } catch ( PHPUnit_Framework_Error_Notice $ex ) {
             $this->fail('Zend_Locale_Format::checkDateFormat emitted unexpected E_NOTICE');
         }