I haven't checked out Codeception too much and I haven't fully incorporated
any BDD in php.  But I am very interested in BDD in general.  I think the
Gherkin DSL is nice because it lets project managers or other people that
might be helping to write specs get involved in the tests without needing
to know php (https://github.com/cucumber/cucumber/wiki/Gherkin).  I think
the "magic" of it is pretty light.  You still end up writing everything in
code.

I've seen people chatter on github and irc about integrating behat with
lithium -- seemed that they didn't even need to write a plugin for it.

In general though, I've struggled with whether or not to integrate a BDD
framework in php.  We do a lot in javascript, so it seems to make more
sense to drive our bdd tests from the browser using testacular (
http://vojtajina.github.com/testacular/) and jasmine (
http://pivotal.github.com/jasmine/).  And leave the php testing to be unit
and integration tests (which are provided out of the box with lithium).

-Rob


On Wed, Oct 24, 2012 at 3:53 PM, Yitzchak Schaffer <
yitzchak.schaf...@gmx.com> wrote:

> So, BDD: I see there's Behat and Cucumber for PHP, which are similar
> inasmuch as they use a DSL. There's also Codeception.
>
> http://behat.org/
> http://lucato.it/php-bdd-**cucumber-cuke4php<http://lucato.it/php-bdd-cucumber-cuke4php>
> http://codeception.com/
>
> I personally have a guttural aversion to the magic DSL style of testing,
> so Codeception looks especially enticing; but I assume that Behat has
> better community adoption, given the crossover effect from Cucumber, and
> the fact that it was adopted by the symfony community.
>
> My shop is using Lithium for framework, and I'm wanting to write a BDD
> plugin using one of these libraries. Any thoughts? General discussion of
> BDD in PHP also welcome.
>
> --
> YS
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show-participation

Reply via email to