我知道最近有很多關於PHPUnit問題的討論,我花了四天的時間試圖讓PHPUnit安裝在我的Windows 7計算機上。我已經確認我升級了PEAR,以便它是最新的。當我安裝PHPUnit我得到如下:PHPUnit輸入文件問題
C:\Users\Marc>pear install --alldeps phpunit/PHPUnit
phpunit/PHPUnit can optionally use PHP extension "curl"
phpunit/PHPUnit can optionally use PHP extension "dbus"
downloading PHPUnit-3.5.14.tgz ...
Starting to download PHPUnit-3.5.14.tgz (118,697 bytes)
..........................done: 118,697 bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.5.14
C:\Users\Marc>
所以,據我所知,一切順利的話......現在,當我嘗試調用phpunit
我得到了以下問題:
無法打開輸入文件C:\ server \ www \ phpunit
有沒有人有一個想法如何解決這個問題?
確保你在系統PATH中有phpunit.bat文件。 –
它已經在路徑中 –
嘗試調用'phpunit.bat'而不是'phpunit'。這是否工作? – hakre