Php beginner ---- install Pear and PHPUnit in the WAMP integrated environment -- successful!

Source: Internet
Author: User
: This article describes how to install Pear and PHPUnit in the WAMP integrated environment !, If you are interested in the PHP Tutorial, refer. Install phpunit in wamp environment
I have found a lot of information before. it is clear that the installation method of my previous article has expired in a blog of my predecessors. I still follow the instructions. as a result, I always reported an error during installation.

The command executed N + times, determined not for the sake of the network, I turned to their official documentation, address: https://phpunit.de/manual/5.0/en/installation.html, has been affirmed before, the environment is: win8 64bit + php5.3.10 + Apache2.2.21

Find the installation method for Windows

  1. Php installation directory and environment variable configuration. steps 1 and 2 in the figure can be simplified as one step.

  2. Download the https://phar.phpunit.de/phpunit.pharfile to the php installation directory, for example, E: \ phptools \ wampServer \ wamp \ bin \ php \ php5.3.10.

  3. Windows + R call up cmd command line tool

  4. Create a phpunit script
    Switch to your php installation directory first
    Enter the command echo @ php "% ~ Dp0phpunit. phar "% *> phpunit. cmd
    After the command is executed, the phpunit. cmd script is generated in the php installation directory.

    Exit command, exit cmd
    Open a command line window again and run the command: phpunit-version to check whether the installation is successful!

It took so long to see the latest official version ~~~ One afternoon, I changed several static pages and the time was spent here. I hope you can refer to them to improve efficiency!

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes how to install Pear and PHPUnit in the WAMP integration environment !, Including some content, hope to be helpful to friends who are interested in PHP tutorials.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.