2017-02-26 29 views
0

今天早上我花了一些時間升級一些我用於工作的庫。我的Mac OSX現在使用PHP 7.1,並將我的虛擬盒子升級到5.1,並將流浪者升級到1.9.1。我的單項目也使用PHP 7.1.2,並且我正在使用PHPUnit 6.0作爲項目。PHPUnit不會在虛擬盒子,php和流浪者升級後運行

除PHPUnit外,一切似乎都正常。當我運行:

bash vendor/bin/phpunit 

我得到以下輸出:

vendor/bin/phpunit:2: no such file or directory: ?php 
vendor/bin/phpunit:3: permission denied: /Applications 
vendor/bin/phpunit:4: command not found: Homestead.yaml 
vendor/bin/phpunit:5: command not found: Homestead.yaml 
vendor/bin/phpunit:7: parse error near `\n' 

看着在谷歌,但沒有找到任何東西,都創下了磚牆。有任何想法嗎?

回答

3

嗯 爲什麼

bash vendor/bin/phpunit

恕我直言應該是php vendor/bin/phpunit

PHPUnit的是一個PHP腳本

+0

耶穌......這已被竊聽我小時。多麼愚蠢的錯誤!在phpunit文件的頂部有一個bash行,所以假設它是一個bash腳本,然後通過它加載PHP或其他東西。 –

相關問題