Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Try regexp as not all locales are available.

  • Loading branch information...
commit 89b2eddf0b54a88a5c48e13dd3b714d387b1ff5e 1 parent 6a1e9e8
@markstory markstory authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Utility/CakeNumberTest.php
View
4 lib/Cake/Test/Case/Utility/CakeNumberTest.php
@@ -493,10 +493,10 @@ public function testReadableSizeLocalized() {
$restore = setlocale(LC_ALL, 0);
setlocale(LC_ALL, 'de_DE');
$result = $this->Number->toReadableSize(1321205);
- $this->assertEquals('1,26 MB', $result);
+ $this->assertRegExp('/1[,.]26 MB/', $result);
$result = $this->Number->toReadableSize(1024 * 1024 * 1024 * 512);
- $this->assertEquals('512,00 GB', $result);
+ $this->assertRegExp('/512[,.]00 GB/', $result);
setlocale(LC_ALL, $restore);
}
Please sign in to comment.
Something went wrong with that request. Please try again.