From 38f64a1bd9f9a49d2d47aa3041d85a8ce081b6f5 Mon Sep 17 00:00:00 2001 From: hlecorche Date: Tue, 22 Nov 2011 10:31:25 +0100 Subject: [PATCH] [Form] added some unit tests --- tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php b/tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php index 714fdfb543..85326a6ee0 100644 --- a/tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php +++ b/tests/Symfony/Tests/Component/Form/AbstractLayoutTest.php @@ -1491,11 +1491,13 @@ abstract class AbstractLayoutTest extends \PHPUnit_Framework_TestCase { $form = $this->factory->createNamed('textarea', 'na&me', 'foo&bar', array( 'property_path' => 'name', + 'pattern' => 'foo', )); $this->assertWidgetMatchesXpath($form->createView(), array(), '/textarea [@name="na&me"] + [not(@pattern)] [.="foo&bar"] ' );