Browse Source

fix broken PHPDefaultFormat test with correct expected outputs (#14560)

tags/3.0.0-alpha1
Boudewijn Vahrmeijer 7 years ago committed by Alexander Makarov
parent
commit
209bcf0773
  1. 12
      tests/framework/helpers/FormatConverterTest.php

12
tests/framework/helpers/FormatConverterTest.php

@ -80,6 +80,18 @@ class FormatConverterTest extends TestCase
$this->convertFormat($format),
'UTC'
);
switch ($format) {
case 'short' :
$expected = str_replace('yy', 'yy,', $expected);
break;
case 'medium' :
$expected = str_replace(' y', ' y,', $expected);
break;
case 'long' :
case 'full' :
$expected = str_replace(' y', " y 'at'", $expected);
break;
}
break;
default:
throw new Exception("Format \"$name\" is not supported");

Loading…
Cancel
Save