Browse Source

Fixed HHVM tests compatibility. Try 3

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

2
tests/framework/helpers/FormatConverterTest.php

@ -84,7 +84,7 @@ class FormatConverterTest extends TestCase
$pattern = $fmt->getPattern();
if (defined('HHVM_VERSION') && $format === 'short') {
$pattern = str_replace(',', ' ', $pattern); // Remove comma between date and time ('M/d/yy, h:mm a')
$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