Browse Source

Fixed HHVM tests compatibility

tags/3.0.0-alpha1
SilverFire - Dmitry Naumenko 8 years ago
parent
commit
2ab2fd96cc
  1. 8
      tests/framework/helpers/FormatConverterTest.php

8
tests/framework/helpers/FormatConverterTest.php

@ -81,7 +81,13 @@ class FormatConverterTest extends TestCase
break;
}
$this->assertEquals($expected, $fmt->getPattern(), "Format for $format $name does not match.");
$pattern = $fmt->getPattern();
if (defined('HHVM_VERSION') && $name === 'short') {
$pattern = str_replace(',', ' ', $pattern); // Remove comma between date and time ('M/d/yy, h:mm a')
}
$this->assertEquals($expected, $pattern, "Format for $format $name does not match.");
}
}
}

Loading…
Cancel
Save