New to PHP----Install Pear and PHPUnit in WAMP integrated environment--Success!

WBOY
Release: 2016-07-29 09:07:31
Original
1216 people have browsed it

Install phpunit in wamp environment
I searched a lot of information before, and it turns out that the installation method written in my previous article by a senior in my blog has expired. I still followed that method. As a result, when installing, I kept getting errors. The command was executed N+ times. , after confirming that it was not due to the network, I turned to the documentation on their official website, address: https://phpunit.de/manual/5.0/en/installation.html. As stated before, the environment is: win8 64bit + php5. 3.10 + Apache2.2.21
php新手----WAMP集成环境下安装Pear和PHPUnit --成功!Find the Windows installation method


php新手----WAMP集成环境下安装Pear和PHPUnit --成功!php installation directory, configure the environment variables, steps 1 and 2 in the picture can actually be simplified to one step


  1. php新手----WAMP集成环境下安装Pear和PHPUnit --成功!Replace https:/ Download the /phar.phpunit.de/phpunit.phar file to the php installation directory. For example, mine is: E:phptoolswampServerwampbinphpphp5.3.10

  2. Windows+R Call up the cmd command line tool

  3. Create a phpunit script

    First switch to your php installation directory
  4. Enter the command: echo @php “%~dp0phpunit.phar” %* > phpunit.cmd
  5. After the command is executed, the phpunit.cmd script




    exit command will be generated in the php installation directory to exit cmd
    Then reopen a command line window and use the command: phpunit –version to check whether the installation is successful! php新手----WAMP集成环境下安装Pear和PHPUnit --成功!


After struggling for so long, it is better to look at the latest official version~~~ I changed a few static pages in one afternoon, and all the time was wasted here. I hope everyone can refer to it to improve efficiency!

php新手----WAMP集成环境下安装Pear和PHPUnit --成功!').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i

').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the PHP novice-installing Pear and PHPUnit in the WAMP integrated environment-success! , including relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template