From b47915c34e93a54dd05482a9d6f5fcd655ab4235 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jan 2017 17:04:05 +0100 Subject: [PATCH] [Form] Fix forward compat of AbstractLayoutTest --- src/Symfony/Component/Form/Tests/AbstractLayoutTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php index 4ebff46056..e7dc2ce9ea 100644 --- a/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractLayoutTest.php @@ -2422,7 +2422,11 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg $html = $this->renderWidget($form->createView()); // compare plain HTML to check the whitespace - $this->assertSame('', $html); + try { + $this->assertSame('', $html); + } catch (\PHPUnit_Framework_AssertionFailedError $e) { + $this->assertSame('', $html); + } } public function testWidgetAttributeNameRepeatedIfTrue()