Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 8, 2023
1 parent ee88214 commit af8ca31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Form/Widget/FormChoiceWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testLabelRendering(): void

$html = $this->renderWidget($choice->createView());

if (0 !== preg_match("/7\..\../", Kernel::VERSION)) {
if (1 === preg_match("/6\..\../", Kernel::VERSION)) {
static::assertStringContainsString(

Check failure on line 45 in tests/Form/Widget/FormChoiceWidgetTest.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 + highest + symfony/symfony:"6.3.*"

Failed asserting that '<ul id="choice" class=" list-unstyled"><li><div class="checkbox"><label><input type="checkbox" id="choice_0" name="choice[]" value="0" /><span class="control-label__text">[trans]some[/trans]</span></label></div></li><li><div class="checkbox"><label><input type="checkbox" id="choice_1" name="choice[]" value="1" /><span class="control-label__text">[trans]choices[/trans]</span></label></div></li></ul>' contains "<li><div class="checkbox"><label><input type="checkbox" id="choice_0" name="choice[]" value="0"><span class="control-label__text">[trans]some[/trans]</span></label></div></li>".
'<li><div class="checkbox"><label><input type="checkbox" id="choice_0" name="choice[]" value="0"><span class="control-label__text">[trans]some[/trans]</span></label></div></li>',
$this->cleanHtmlWhitespace($html)
Expand Down

0 comments on commit af8ca31

Please sign in to comment.