行为驱动开发和 PHP 应用程序

发布于 2024-09-29 03:59:26 字数 211 浏览 0 评论 0原文

我爱上了黄瓜。它可以轻松地配置为 Ruby on Rails 应用程序。然而,我是 Ruby 新手,我团队的其他成员也是如此。我们正在使用 Zend Framework 编写 PHP 应用程序。我有兴趣了解您如何为 PHP 应用程序实现 BDD 以及我应该使用哪些框架/库。你配置了黄瓜吗?或者您正在使用不同的库?

I am in love with Cucumber. It's easily configured for a Ruby on Rails application. However, I'm new to Ruby and so is the rest of my team. We are writing PHP applications using the Zend Framework. I'm interested in hearing how you have implemented BDD for your PHP applications and what frameworks/libraries I should use. Have you configured Cucumber? Or are you using a different library?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦回旧景 2024-10-06 03:59:26

Cuke4PHP

Cuke4PHP 实现了 Cucumber 线协议,使得可以用 PHP 编写步骤定义。这意味着您可以用 Ruby 编写部分(或大部分)步骤定义,并用 PHP 编写其他步骤定义(与修改数据库有关的步骤定义)。

另一种选择是..

Behat

Behat 是用 PHP 5.3 编写的 Cucumber 端口。不幸的是,它需要 PHP 5.3,因此如果您的环境没有设置 PHP 5.3,您将无法使用它。

Cuke4PHP

Cuke4PHP implements the Cucumber wire protocol, making it possible to write step definitions in PHP. This means you can write some (or most) of your step definitions in Ruby and write the other step definitions in PHP (the ones that have to do with modifying the database).

Another alternative is..

Behat

Behat is a port of Cucumber written in PHP 5.3. Unfortunately, it requires PHP 5.3, so if your environment is not set up for PHP 5.3, you won't be able to use this.

自在安然 2024-10-06 03:59:26

我已经使用 cuke4php 成功运行了带有 PHP 步骤定义的 Cucumber。但是我们开发团队中的 Windows 用户无法运行 cuke4php,因为他们在该平台上遇到了 ruby​​ 和 fork(2) 的问题。

使用 Cygwin 从 Windows 运行 fork(2)。可能吗?

I've successfully ran cucumber with PHP step definitions using cuke4php. But the Windows users on our dev team could not run cuke4php because they ran into a problem with ruby and fork(2) on that platform.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文