|
|
@@ -1101,7 +1101,9 @@ class Zend_Locale_FormatTest extends PHPUnit_Framework_TestCase
|
|
|
{
|
|
|
try {
|
|
|
setlocale(LC_ALL, 'en_US'); // test setup
|
|
|
- $this->assertTrue(Zend_Locale_Format::checkDateFormat('2011/10/21', array()));
|
|
|
+ Zend_Locale_Format::setOptions(array('date_format' => 'yyyy-MM-dd'));
|
|
|
+
|
|
|
+ $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');
|
|
|
}
|