From 209bcf07735385f69ffa32605b205c04cdc0398e Mon Sep 17 00:00:00 2001 From: Boudewijn Vahrmeijer Date: Tue, 1 Aug 2017 09:35:54 +0200 Subject: [PATCH] fix broken PHPDefaultFormat test with correct expected outputs (#14560) --- tests/framework/helpers/FormatConverterTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/framework/helpers/FormatConverterTest.php b/tests/framework/helpers/FormatConverterTest.php index b2e69b4..e9c06d5 100644 --- a/tests/framework/helpers/FormatConverterTest.php +++ b/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");