Преглед изворни кода

Adds unit test for parent locale in Zend_Currency

Frank Brückner пре 10 година
родитељ
комит
7b0b96ce19
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      tests/Zend/CurrencyTest.php

+ 9 - 0
tests/Zend/CurrencyTest.php

@@ -852,4 +852,13 @@ class Zend_CurrencyTest extends PHPUnit_Framework_TestCase
             array(Zend_Currency::USE_NAME, 'US Dollar100.00')
         );
     }
+
+    /**
+     * @group GH-516
+     */
+    public function testToCurrencyWithLocaleWhichHasParentLocale()
+    {
+        $currency = new Zend_Currency(null, 'es_AR');
+        $this->assertEquals('$10,00', $currency->toCurrency(10));
+    }
 }