Permalink
Browse files

Try LC_ALL instead.

  • Loading branch information...
1 parent 77fc8a9 commit 6a1e9e80b2ece33a86a9607ba70b17a140993dac @markstory markstory committed Jun 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Utility/CakeNumberTest.php
@@ -490,14 +490,14 @@ public function testToReadableSize() {
* @return void
*/
public function testReadableSizeLocalized() {
- $restore = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, 'de_DE');
+ $restore = setlocale(LC_ALL, 0);
+ setlocale(LC_ALL, 'de_DE');
$result = $this->Number->toReadableSize(1321205);
$this->assertEquals('1,26 MB', $result);
$result = $this->Number->toReadableSize(1024 * 1024 * 1024 * 512);
$this->assertEquals('512,00 GB', $result);
- setlocale(LC_NUMERIC, $restore);
+ setlocale(LC_ALL, $restore);
}
/**

0 comments on commit 6a1e9e8

Please sign in to comment.