File tree 1 file changed +5
-1
lines changed
src/Symfony/Component/Form/Tests
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2422,7 +2422,11 @@ public function testWidgetAttributes()
2422
2422
$ html = $ this ->renderWidget ($ form ->createView ());
2423
2423
2424
2424
// 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
+ }
2426
2430
}
2427
2431
2428
2432
public function testWidgetAttributeNameRepeatedIfTrue ()
You can’t perform that action at this time.
0 commit comments