PHP Behavioral Development and Applications

I love Cucumbers . It is easy to configure for a Ruby on Rails application. However, I'm new to Ruby, and the rest of my team. We are writing PHP applications using the Zend Framework. I am interested to know how you have implemented BDD for your PHP applications and which environments / libraries I should use. Have you set up a cucumber? Or are you using a different library?

+3
source share
2 answers

Cuke4php

Cuke4PHP implements Cucumber's wire protocol, allowing you to write step definitions in PHP. This means that you can write some (or most) of your step definitions in Ruby and write other step definitions in PHP (those related to changing the database).

Another variant:

Behat

Behat is a Cucumber port written in PHP 5.3. Unfortunately, it requires PHP 5.3, so if your environment is not configured for PHP 5.3, you will not be able to use this.

+5
source

I successfully ran a cucumber with PHP step definitions using cuke4php. But Windows users in our development team were not able to run cuke4php because they had a problem with ruby ​​and fork (2) on this platform.

Running fork (2) from Windows with Cygwin. Maybe?

0
source

Source: https://habr.com/ru/post/1771347/


All Articles