Tag

phpunit

1 views collected around this technical thread.

Beijing SF i-TECH City Technology Team
Beijing SF i-TECH City Technology Team
Feb 6, 2025 · Fundamentals

Implementing Incremental PHP Code Coverage with php-code-coverage and pcov

This article explains how to use php-code-coverage and the pcov extension to collect line, branch, and path coverage for PHP projects, introduces incremental coverage based on diff files, discusses configuration methods, performance optimizations, and practical lessons learned from real‑world deployment.

AutomationCode CoveragePHP
0 likes · 14 min read
Implementing Incremental PHP Code Coverage with php-code-coverage and pcov
php中文网 Courses
php中文网 Courses
Oct 28, 2024 · Backend Development

Introduction to Unit Testing with PHPUnit for PHP

This article explains the concept and importance of software testing, outlines various test types, and provides a step‑by‑step guide with code examples on installing PHPUnit, creating a Calculator class, writing unit tests, and running them to ensure reliable PHP applications.

Backend DevelopmentTestingphpunit
0 likes · 7 min read
Introduction to Unit Testing with PHPUnit for PHP
php中文网 Courses
php中文网 Courses
Jan 16, 2024 · Backend Development

Getting Started with PHPUnit: Installation, Configuration, and Common Assertions

This guide introduces PHPUnit for PHP, explains how to install and configure it with Composer, and demonstrates common assertions such as assertEquals, assertNotEmpty, assertFalse, assertIsNumeric, and assertSame through practical real-world code examples.

AssertionsBackend DevelopmentTDD
0 likes · 5 min read
Getting Started with PHPUnit: Installation, Configuration, and Common Assertions
Laravel Tech Community
Laravel Tech Community
Oct 7, 2023 · Operations

Testing and Automation Practices for Development and Continuous Delivery

The article outlines the importance of independent, code‑aware testing, describes the test automation pyramid and its focus on API tests, explains how automated testing, continuous integration, and deployment enable continuous delivery, and lists the essential skills and mindset for test developers.

AutomationCIContinuous Delivery
0 likes · 6 min read
Testing and Automation Practices for Development and Continuous Delivery
Laravel Tech Community
Laravel Tech Community
Mar 19, 2023 · Backend Development

Key Changes and New Features in PHPUnit 10

PHPUnit 10, requiring PHP 8.1+, introduces a new event system, clearer test result classifications, PHP 8 attribute metadata support, and updated code‑coverage tools, while providing PHAR and Composer installation methods, representing a major modernization of the PHP testing framework.

CodeCoveragePHPTesting
0 likes · 5 min read
Key Changes and New Features in PHPUnit 10
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 31, 2016 · Fundamentals

Using php-code-coverage for PHP Code Coverage Analysis and CI Integration

The article introduces php-code-coverage, an open‑source library that collects, processes, and visualizes PHP code‑coverage data, explains its measurement metrics such as line, function, and class coverage, and shows how to integrate it with PHPUnit, Composer, and Jenkins for automated testing and quality assessment.

CICode CoverageJenkins
0 likes · 5 min read
Using php-code-coverage for PHP Code Coverage Analysis and CI Integration