It's possible to spec views with phpspec2 in symfony2?

33 views
Skip to first unread message

Silviu Constantin Voicu

unread,
Jul 15, 2013, 2:01:36 PM7/15/13
to phpsp...@googlegroups.com
Hello,

How to spec my views with phpspec2 in symfony2 project, like in rspec?
For example, to spec that my view has some field or form?

And I also, try to give my self an answer, which is: no, because the vies are string, either php or twig, which then are send as an response
back to browser. I could spec, anything that is a class: a controller, a form, an entity, model, an twig extension, but not the view as it's in the symfony2.

I guess that my solution is to spec the form, and do the view as normal, right? I did see, a spec for view, in sylius for example, and sylius project is kind of
reference for me, not only for bdd.

Silviu Constantin Voicu

unread,
Jul 15, 2013, 2:10:26 PM7/15/13
to phpsp...@googlegroups.com
Sorry, it was: I didn't see a spec for view in sylius project :)
Reply all
Reply to author
Forward
0 new messages