Determining Code Coverage With PHPUnit

Опубликовано: 06 Июль 2026
на канале: PHP Architect
1,504
14

In this video, Scott discusses what code coverage is, how to calculate it, and how to get PHPUnit to display the code coverage percentage for our project.

00:00 Intro
01:01 What is Code Coverage?
02:36 What's a Good Coverage Number?
03:48 Ad
05:18 PHPUnit Example
07:51 CI/CD Integration
08:09 What You Need to Know
08:26 Outro


php[architect] is an industry-leading publication focused on the PHP language. We are for developers written by developers. Publishing great PHP content since 2002 and dedicated to providing educational material to the PHP programming community.

Subscribe today at https://phpa.me/signup
Mastodon: https://phparch.social/@editor
Twitter: @phparch
Facebook: https://phpa.me/facebook
LinkedIn: https://phpa.me/linkedin