Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

PHP Unit Testing

This course will teach you how to write unit tests for your PHP using PHPUnit.

Intermediate
3h 13m
(2)

Created by Travis Thomsen

Last Updated May 22, 2024

Course Thumbnail
  • Course

PHP Unit Testing

This course will teach you how to write unit tests for your PHP using PHPUnit.

Intermediate
3h 13m
(2)

Created by Travis Thomsen

Last Updated May 22, 2024

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

In this course, PHP Unit Testing, you’ll learn to write unit tests using PHPUnit. First, you’ll explore why you should write tests for your code and how it will make your life easier as a developer. Next, you’ll discover how to write assertion tests, use fixtures as well as, using test doubles to isolate unit tests from external dependencies. Finally, you’ll learn how to tackle more advanced topics such as test driven development, code coverage, database integration testing and testing asynchronous calls in PHP. When you’re finished with this course, you’ll have the skills and knowledge of confidently writing tests for your PHP code using PHPUnit.

PHP Unit Testing
Intermediate
3h 13m
(2)
Table of contents

About the author
Travis Thomsen - Pluralsight course - PHP Unit Testing
Travis Thomsen
8 courses 4.6 author rating 20 ratings

I've worked in IT for over 20 years. My area of focus has been API development, automation, CI/CD and containerization. I'm a passionate learner constantly looking to improve my skills and learn new things.

Get started with Pluralsight