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