PHP - Is there a portable version of PHPUnit? -


is there portable version of phpunit can bundle web app? want able use phpunit on server while avoiding issues of using pear (version conflicts, breaking other hosted apps, etc.).

portable phpunit (taken https://github.com/sebastianbergmann/phpunit "using phpunit git checkout" )

for 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 .. 

and put every single of folders include path.

it not work if leave out 1 of packages.

if don't want have them in include path here phpunit.sh executable

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 $* 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -