Skip to content

Commit 02afc26

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: relax assertions for ICU 72.1 [Validator] Fix regression with class metadatada on parent classes [VarExporter] Fix exporting classes with __serialize() but not __unserialize() [HttpFoundation][HttpKernel] Fix deprecations when `Content-Type` is `null`
2 parents 9ec4439 + 360c54a commit 02afc26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function testTransformToDifferentLocale()
124124

125125
$transformer = new DateTimeToLocalizedStringTransformer('UTC', 'UTC');
126126

127-
$this->assertEquals('Feb 3, 2010, 4:05 AM', $transformer->transform($this->dateTime));
127+
$this->assertMatchesRegularExpression('/^Feb 3, 2010, 4:05\s+AM$/u', $transformer->transform($this->dateTime));
128128
}
129129

130130
public function testTransformEmpty()

Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public function testSingleTextWidgetWithCustomNonHtml5Format()
530530
]);
531531
$view = $form->createView();
532532

533-
$this->assertSame('2/13/19, 7:12:13 PM', $view->vars['value']);
533+
$this->assertMatchesRegularExpression('#^2/13/19, 7:12:13\s+PM$#u', $view->vars['value']);
534534
}
535535

536536
public function testDateTypeChoiceErrorsBubbleUp()

0 commit comments

Comments
 (0)