PHP   发布时间:2022-04-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了PHP – 是否有PHPUnit的可移植版本?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
是否有可以与我的Web应用程序捆绑的 PHPUnit的可移植版本?我希望能够在任何服务器上使用PHPunit,同时避免使用PEAR(版本冲突,破坏其他托管应用程序等)的问题. @H_419_1@
@H_419_1@
便携式PHPunit(取自 https://github.com/sebastianbergmann/phpunit“使用来自Git Checkout的PHPUnit”)

对于PHPunit 3.5:

git clone git://github.com/sebastianbergmann/PHPunit.git
git clone git://github.com/sebastianbergmann/dbunit.git
git clone git://github.com/sebastianbergmann/PHP-file-iterator.git
git clone git://github.com/sebastianbergmann/PHP-text-template.git
git clone git://github.com/sebastianbergmann/PHP-code-coverage.git
git clone git://github.com/sebastianbergmann/PHP-token-stream.git
git clone git://github.com/sebastianbergmann/PHP-timer.git
git clone git://github.com/sebastianbergmann/PHPunit-mock-objects.git
git clone git://github.com/sebastianbergmann/PHPunit-selenium.git

cd PHPunit && git checkout 3.5 && cd ..
cd dbunit && git checkout 1.0 && cd ..
cd PHP-file-iterator && git checkout 1.2 && cd ..
cd PHP-code-coverage && git checkout 1.0 && cd ..
cd PHP-token-stream && git checkout 1.0 && cd ..
cd PHPunit-mock-objects && git checkout 1.0 && cd ..
cd PHPunit-selenium && git checkout 1.0 && cd ..

然后将每个文件夹放入包含路径中.

如果您遗漏任何一个包,它将无法工作.

如果你不想总是在include路径中有它们,那么这是一个PHPunit.sh可执行文件

PHPunit.sh

x='./checkoutDir/';

PHP -d include_path=".:$x/PHPunit/:$x/dbunit/:$x/PHP-code-coverage/:$x/PHP-file-iterator/:$x/PHP-text-template/:$x/PHP-timer/:$x/PHP-token-stream/:$x/PHPunit-mock-objects/:$x/PHPunit-selenium/:$x/PHPunit-story/:/usr/share/PHP/"  $x/PHPunit/PHPunit.PHP $*
@H_419_1@
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。

大佬总结

以上是大佬教程为你收集整理的PHP – 是否有PHPUnit的可移植版本?全部内容,希望文章能够帮你解决PHP – 是否有PHPUnit的可移植版本?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: