cvs: pear /I18Nv2/tests I18Nv2_Locale-PHPUnit_Testcase.php
| From: | Michael Wallner | Date: | Fri, 16 Apr 2004 17:58:37 +0000 |
| Subject: | cvs: pear /I18Nv2/tests I18Nv2_Locale-PHPUnit_Testcase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18328@lists.php.net to get a copy of this message | ||
mike Fri Apr 16 13:58:37 2004 EDT
Modified files:
/pear/I18Nv2/tests I18Nv2_Locale-PHPUnit_Testcase.php
Log:
* update (for now)
http://cvs.php.net/diff.php/pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php?r1=1.2&r2=1.3&ty=u
Index: pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php
diff -u pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php:1.2
pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php:1.3
--- pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php:1.2 Fri Mar 26 10:26:14 2004
+++ pear/I18Nv2/tests/I18Nv2_Locale-PHPUnit_Testcase.php Fri Apr 16 13:58:37 2004
@@ -54,7 +54,7 @@
*/
function testsetLocale()
{
-
$this->assertFalse(PEAR::isError($this->l->setLocale($GLOBALS['____locale'])));
+ $this->assertTrue($this->l->setLocale($GLOBALS['____locale']));
}
/**
@@ -116,7 +116,9 @@
*/
function testformatCurrency()
{
- $this->assertEquals('USD 2,000.00', $this->l->formatCurrency(2000));
+ $this->l->setLocale('de_AT');
+ $this->assertEquals('EUR 2.000,00', $this->l->formatCurrency(2000));
+ $this->l->setLocale($GLOBALS['____locale']);
}
/**
@@ -146,7 +148,7 @@
*/
function testformatTime()
{
- $this->assertEquals(strftime('%T', $this->t),
$this->l->formatTime($this->t));
+ $this->assertEquals(strftime('%H:%M:%S', $this->t),
$this->l->formatTime($this->t));
}
/**