PHP Testing - 2 Setup PHPStorm for unit Testing and Debugging - phpunit - php test tutorial

Опубликовано: 19 Март 2025
на канале: codeForMe
697
10

PHP TESTING WITH PHP UNIT TEST
This is a part of a series of 4 videos that will walk through how to effectively write unit tests and learn how to unit test your code using the PHP phpunit library.

In this video we will setup PHP Storm to run and debug our PHP unittest tests,
Knowing your IDE saves time.

PHPStorm Early Access Version: https://www.jetbrains.com/phpstorm/ne...

Chapters:

0:00 Overview PHPStorm for running and debugging tests.
0:04 Link for Downloading PHPStorm free version.
0:12 Requirements: Composer and PHPunit should be installed.
0:18 Adding a PHPunit testing run configuration.
0:38 Setting the default PHP Interpreter to be used by our unit tests.
1:15 Setting a test framework local PHP unit.
1:48 Running unit test within PHPStorm.
1:55 why php unit testing within IDE is good.
2:13 Debugging php unit test within PHPStorm.
2:20 Adding a breakpoint in the php unit test method.
2:34 Reviewing the php unit test debug