PhpUnit in PhpStorm

Basic installation and configuration of PhpUnit in PhpStorm.

Install PhpUnit

Install through the composer:

composer require –dev phpunit / phpunit ^ latest

Settings in PhpStorm

Running tests

Go to the directory outside the vendor directory and run the script:

Specific appeal:

vendor / bin / phpunit tests
vendor / bin / phpunit tests / user / UsersTest.php

Other

Other installation methods and more detailed guides can be found here:
https://phpunit.readthedocs.io/ru/latest/installation.html

Hey. You are on my site. I am a developer. Here I share my best practices and knowledge. Ask in the comments if you don’t understand something or write if you have something to add.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *