![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to configure PHPUnit testing?
PHPStorm can be used to test PHP applications using the PHPUnit testing framework.
The PHP interpreter needs to be configured in phpstorm.
The Composer should be installed and initialized with respect to the current project.
Below are the steps to configure PHPUnit testing −
Download phpunit.phar (manually or using the composer) and save it on your machine.
The PHPUnit needs to be integrated with a PhpStorm project. PHPUnit can be configured manually or automatically.
A PHPUnit test needs to be generated for the class.
Once the test has been generated, PHPUnit test methods need to be generated.
Post this, the PHPUnit test needs to be debugged and run.
Advertisements