Browse Source

skip test for 32 bit systems, formatter returns false, causing fatal error for toString()

Ceeram 11 years ago
parent
commit
5ee9441fcd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/I18n/TimeTest.php

+ 1 - 0
tests/TestCase/I18n/TimeTest.php

@@ -582,6 +582,7 @@ class TimeTest extends TestCase {
  */
 	public function testToStringInvalidZeros() {
 		$this->skipIf(DS === '\\', 'All zeros are valid on windows.');
+		$this->skipIf(PHP_INT_SIZE === 4, 'IntlDateFormatter throws exceptions on 32-bit systems');
 		$time = new Time('0000-00-00');
 		$this->assertInternalType('string', (string)$time);
 		$this->assertNotEmpty((string)$time);