Browse Source

On some machines the de_DE locale is full of lies.

Skip tests when they will fail.
mark_story 12 years ago
parent
commit
b79461a049
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Validation/ValidationTest.php

+ 1 - 0
tests/TestCase/Validation/ValidationTest.php

@@ -1663,6 +1663,7 @@ class ValidationTest extends TestCase {
 		$this->skipIf(DS === '\\', 'The locale is not supported in Windows and affects other tests.');
 		$restore = setlocale(LC_NUMERIC, 0);
 		$this->skipIf(setlocale(LC_NUMERIC, 'de_DE') === false, "The German locale isn't available.");
+		$this->skipIf(strpos(',', (string)12345.67) === false, "The German locale does not include , for numbers.");
 
 		$this->assertTrue(Validation::decimal(1.54), '1.54 should be considered a valid float');
 		$this->assertTrue(Validation::decimal('1.54'), '"1.54" should be considered a valid float');