Explorar o código

[ZF-11837] Unit Test Update

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24520 44c647ce-9c0f-0410-b52a-842ac1e357ba
adamlundrigan %!s(int64=14) %!d(string=hai) anos
pai
achega
1a6f4f0605
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');
         }