Hi Hossein,
This question is best for the symfony-users group, please ask future
questions there. It looks like you need to enable annotations in your
tests. Something like this to get your form object:
$validator = Validation::createValidatorBuilder()
->enableAnnotationMapping()
->getValidator();
$factory = Forms::createFormFactoryBuilder()
->addExtension(new ValidatorExtension($validator))
->getFormFactory();
$form = $factory->create( <Your FormType Here>
Hope this helps.
Jamie
http://twitter.com/jrlearmonth
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en