NetBeans +多个php版本+没有PEAR的phpUnit [英] NetBeans + multiple php versions + phpUnit without PEAR

查看:105
本文介绍了NetBeans +多个php版本+没有PEAR的phpUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题有点复杂。我在IIS上有多个php版本。每个php项目都有自己的php版本和域名,例如:www.webshop.loc ...我正在通过NetBeans开发项目,我想使用TDD作为开发过程。

My problem is a little bit complicated. I have multiple php versions on IIS. Every php project has its own php version and domain name, for example: www.webshop.loc... I'm developing the projects via NetBeans, and I'd like to use TDD as development process.

我的问题是:如何安装phpUnit而不安装PEAR或打开任何DOS风格的窗口,以及如何设置phpUnit在不同的项目中使用不同的php版本?

My problem is: how to install the phpUnit without installing PEAR or opening any DOS style windows, and how to setup phpUnit to use different php versions on different projects?

(嗯99%这是不可能的。:S)

(Hmm 99% that's not possible. :S)

推荐答案

我设法在1.5之后安装phpunit年,所以这是现在的最新答案。

I managed to install phpunit after 1.5 year, so this is the up to date answer now.

我只是使用了这些设置的作曲家: PHPUnit通过Composer和PhpStorm ,它工作正常!

I simply used composer with these settings: PHPUnit via Composer and PhpStorm, and it worked!

我现在使用phpstorm而不是netbeans,因为我可以为每个项目配置不同的php解释器和phpunit设置。我没有遵循netbeans的变化,也许在新版本中它也能够做到这一点,但是版本7.1还不够。

I use phpstorm now instead of netbeans, in that I can configure different php interpreter and phpunit settings for each project. I did not follow the changes in netbeans, maybe in the new versions it's capable of that too, but version 7.1 was not enough for that.

这篇关于NetBeans +多个php版本+没有PEAR的phpUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆