File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2422,7 +2422,11 @@ public function testWidgetAttributes()
24222422 $ html = $ this ->renderWidget ($ form ->createView ());
24232423
24242424 // compare plain HTML to check the whitespace
2425- $ this ->assertSame ('<input type="text" id="text" name="text" readonly="readonly" disabled="disabled" required="required" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" /> ' , $ html );
2425+ try {
2426+ $ this ->assertSame ('<input type="text" id="text" name="text" readonly="readonly" disabled="disabled" required="required" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" /> ' , $ html );
2427+ } catch (\PHPUnit_Framework_AssertionFailedError $ e ) {
2428+ $ this ->assertSame ('<input type="text" id="text" name="text" disabled="disabled" required="required" readonly="readonly" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" /> ' , $ html );
2429+ }
24262430 }
24272431
24282432 public function testWidgetAttributeNameRepeatedIfTrue ()
You can’t perform that action at this time.
0 commit comments