Phpstorm configuring PHPUnit to unit test the PHP code introduced by composer

Source: Internet
Author: User
Tags composer install
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!

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.