From 07be5bf48426ccf5bbf5f8b2f37016b718e28263 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 9 Jun 2011 12:05:27 +0200 Subject: [PATCH] [Form] fixed test --- tests/Symfony/Tests/Component/Form/FormBuilderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Symfony/Tests/Component/Form/FormBuilderTest.php b/tests/Symfony/Tests/Component/Form/FormBuilderTest.php index 5d5caa8d31..adf474ed7b 100644 --- a/tests/Symfony/Tests/Component/Form/FormBuilderTest.php +++ b/tests/Symfony/Tests/Component/Form/FormBuilderTest.php @@ -97,7 +97,7 @@ class FormBuilderTest extends \PHPUnit_Framework_TestCase public function testCreateNoTypeNoDataClass() { - $this->setExpectedException('Symfony\Component\Form\Exception\FormException', 'The data class must be set to automatically create children'); + $this->setExpectedException('Symfony\Component\Form\Exception\FormException', 'The "foo" type cannot be guessed as the data class is not set. Provide the type manually (\'text\', \'password\', ...) or set the data class.'); $this->builder->create('foo'); }