PHP – 是否有PHPUnit的可移植版本?
发布时间:2020-12-13 13:35:14 所属栏目:PHP教程 来源:网络整理
导读:是否有可以与我的Web应用程序捆绑的 PHPUnit的可移植版本?我希望能够在任何服务器上使用phpunit,同时避免使用PEAR(版本冲突,破坏其他托管应用程序等)的问题. 便携式phpunit(取自 https://github.com/sebastianbergmann/phpunit“使用来自Git Checkout的PHPU
是否有可以与我的Web应用程序捆绑的
PHPUnit的可移植版本?我希望能够在任何服务器上使用phpunit,同时避免使用PEAR(版本冲突,破坏其他托管应用程序等)的问题.
便携式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 $* (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |