Unit testing 带有HHVM 3.11的phpunit
根据对的公认答案,我尝试运行一些测试:Unit testing 带有HHVM 3.11的phpunit,unit-testing,phpunit,hhvm,Unit Testing,Phpunit,Hhvm,根据对的公认答案,我尝试运行一些测试: unit-tests/ [develop] > hhvm $(which phpunit) --colors -c phpunit.xml --testsuite all . /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/phpunit/4.3.4/libexec/phpunit-4.3.4.phar $* 看起来这是一个运行测试的命令
unit-tests/ [develop] > hhvm $(which phpunit) --colors -c phpunit.xml --testsuite all .
/usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/phpunit/4.3.4/libexec/phpunit-4.3.4.phar $*
看起来这是一个运行测试的命令(确实如此),但我对此感到困惑
/usr/bin/env php
开头有人对此有什么见解吗?非常感谢 这里发生的事情是,您使用自制软件安装了PHPUnit,因此它为实际的PHAR文件创建了一个包装器脚本。该包装器脚本是一个运行PHPUnit-PHAR的Bash脚本,您正试图让hvm运行该脚本。由于它不是PHP或Hack脚本,Bash脚本直接输出 相反,您可能希望尝试执行
$(brew——前缀phpunit)/libexec/phpunit*.phar
e、 g.:hhvm$(brew--前缀phpunit)/libexec/phpunit*.phar--colors-c phpunit.xml--testsuite all.
通配符是这样的,您不需要指定正在使用的PHPUnit的版本。谢谢!非常有用:)