This article mainly introduces the Phpstorm configuration PHPUnit to composer introduced by the PHP code unit test, has a certain reference value, now share to everyone, the need for friends can refer to
1, how to install PHPUnit, here does not show (if you need to break the point debug test, install PHP xdebug extension method also does not expand said https://xdebug.org/)
2. How to configure
Take the PHP design pattern code as an example Https://github.com/domnikl/DesignPatternsPHP.git
Clone it first.
git Colonel Https://github.com/domnikl/DesignPatternsPHP.git
Open it again.
CD designpatternsphp
Installation dependencies
Composer Install
Okay, I want to pull the bag. Debug Test Trace code in test method or test class
The Phpstorm is configured as follows
bootstrap.php
<?php/** * user:szliugx@gmail.com * DATE:2018/7/4 * Time: PM 6:35 */require __dir__. ' /vendor/autoload.php ';
3. How to break the point debug test in the test method
The configuration is done.
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!