Installing PHPUnit without using pear
How can I install PHPUnit without using PEAR (an开发者_Go百科d offline)?
I'm currently using Window Vista with XAMPP.
You don't really want that. See the dependencies on http://www.phpunit.de/manual/current/en/installation.html - installing them manually is a pain.
What you could do is downloading all pear packages on one machine with pear download $packagename
and installing them on the offline machine with pear, too - but offline.
You'll also need phpunit's channel.xml
file to get the channel registered offline, http://pear.phpunit.de/channel.xml.
Nowadays PHPUnit is available as a single file, which takes care of all its dependencies. See this answer for installation details:
NetBeans + multiple php versions + phpUnit without PEAR
thz . Mine is just copy and paste the whole php folder from successor one to me . all fine now .
精彩评论