|
|
@@ -1093,4 +1093,16 @@ class Zend_Locale_FormatTest extends PHPUnit_Framework_TestCase
|
|
|
$this->assertEquals('4,00', Zend_Locale_Format::toNumber(3.999, $options));
|
|
|
$this->assertEquals('4,00', Zend_Locale_Format::toNumber(4, $options));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-11837
|
|
|
+ */
|
|
|
+ public function testCheckDateFormatDoesNotEmitNoticeWhenNoOptionsAreNotProvided()
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ Zend_Locale_Format::checkDateFormat('2011/10/21', array());
|
|
|
+ } catch ( PHPUnit_Framework_Error_Notice $ex ) {
|
|
|
+ $this->fail('Zend_Locale_Format::checkDateFormat emitted unexpected E_NOTICE');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|