Saturday, August 6, 2011

How to install phpunit on Windows

the PHPUnit installer appears to be written by someone with mild autism....there's no other explanation for it.

either way, here's how i was able to install phpunit:


open the command prompt, type: (enter for each line)
  1. pear channel-update pear.php.net
  2. pear upgrade-all
  3. pear channel-discover pear.phpunit.de
  4. pear channel-discover components.ez.no
  5. pear channel-discover pear.symfony-project.com
  6. pear update-channels
  7. pear install -a -f phpunit/PHPUnit

8 comments:

  1. Thanks, this just helped me out. Never had to do it on Windows before.

    pallsopp@gmail.com

    ReplyDelete
  2. Add a note into step 7:

    If appear the next message “No releases available for package “pear.phpunit.de/PHPUnit” install failed write the next step

    pear clear-cache


    Thank you for your post Neil.

    santihernando@gmail.com

    ReplyDelete
  3. Add a note into 7 step

    If appear the next message “No releases available for package “pear.phpunit.de/PHPUnit” install failed write the next step

    pear clear-cache

    Thanks you for your post, Neil. It was so easy.

    santihernando@gmail.com

    ReplyDelete