<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it" -->

---
title: Join the PHPUnit test cleanup for 7.2 | daily.dev
description: WordPress core maintainers are organizing a coordinated cleanup of its roughly 31,000 PHPUnit tests ahead of the 7.2 release, aiming to cut build time and CI...
canonical: https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Join the PHPUnit test cleanup for 7.2 | daily.dev
og:description: WordPress core maintainers are organizing a coordinated cleanup of its roughly 31,000 PHPUnit tests ahead of the 7.2 release, aiming to cut build time and CI...
og:url: https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it
og:image: https://api.daily.dev/og/posts/pNxHPJ9it.png
og:image:alt: Join the PHPUnit test cleanup for 7.2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Join the PHPUnit test cleanup for 7.2

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 6 min read · 0 upvotes · 0 comments

## Summary

WordPress core maintainers are organizing a coordinated cleanup of its roughly 31,000 PHPUnit tests ahead of the 7.2 release, aiming to cut build time and CI load. Contributors can claim work across eight tracks: fixing tests that leak state between runs, removing 101 assertion-free test methods, converting 501 loose assertEquals() calls to assertSame(), splitting oversized test classes (a prerequisite for PHPUnit 12), removing live network calls behind an external-http guard, speeding up the 22 slowest test classes, general small cleanups, and skipping the PHP test matrix on CSS/JS-only pull requests. Specific tickets, PRs, and commands are provided for each track, along with credits to recent contributors.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/09/08/join-the-phpunit-test-cleanup-for-7-2>

## Questions this post answers

### How many assertEquals() calls still need to be converted to assertSame() in WordPress core's test suite?

There are 501 assertEquals() calls remaining across 124 files in the WordPress core PHPUnit test suite. Converting them to assertSame() matters because assertSame() also checks type, catching falsy-value bugs that assertEquals() misses. Contributors can claim a directory and run npm run test:php against it to verify no assertEquals() calls remain unaddressed.

_Developers tightening test assertions across a large PHP codebase can track WordPress core's approach on daily.dev._

### How many tests in WordPress core have assertions that don't actually test anything?

Trunk carries 101 @doesNotPerformAssertions annotations spread across 26 files, with 98 of them in REST controller tests. The root cause is structural, and a proposed fix in the base testcase (ticket #66073) aims to address it, while a per-file cleanup pass can start immediately without waiting for that fix.

_Anyone auditing PHPUnit suites for hollow assertions can follow this cleanup pattern via daily.dev._

### What is the prerequisite work needed before WordPress core can upgrade to PHPUnit 12?

WordPress core must first split and rename its test classes so each file follows a one-class-per-unit-of-code pattern, with file names matching class names. This class-splitting effort, tracked under ticket #65208, has stalled for lack of contributor attention despite eighteen open pull requests, and is a direct prerequisite for adopting PHPUnit 12.

_Teams planning a PHPUnit major version upgrade can see how WordPress core sequenced its prep work on daily.dev._

## Similar posts on daily.dev

- [Leaner, steadier PHPUnit runs for upcoming releases](https://daily.dev/posts/leaner-steadier-phpunit-runs-for-upcoming-releases-ttpmkxduo) · Make WordPress Core · 0 upvotes · 0 comments
- [How to add automated unit tests to your WordPress plugin](https://daily.dev/posts/how-to-add-automated-unit-tests-to-your-wordpress-plugin-wjyiypjc1) · WordPress Developer · 0 upvotes · 0 comments
- [Precision and Clarity: What is New in PHPUnit 13.2?](https://daily.dev/posts/precision-and-clarity-what-is-new-in-phpunit-13-2--aparnuw4v) · PHPUnit Expert · 0 upvotes · 0 comments
- [Code without tests doesn’t go to production ‣ harasim.dev](https://daily.dev/posts/code-without-tests-doesn-t-go-to-production-harasim-dev-poatc5iii) · Harasim.dev · 0 upvotes · 1 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress), [#phpunit](https://daily.dev/tags/phpunit)

[View this post on daily.dev](https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Join the PHPUnit test cleanup for 7.2","url":"https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it"},"datePublished":"2026-09-08T20:57:08.137Z","dateModified":"2026-09-13T20:37:19.862Z","description":"WordPress core maintainers are organizing a coordinated cleanup of its roughly 31,000 PHPUnit tests ahead of the 7.2 release, aiming to cut build time and CI...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,php,wordpress,phpunit","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Join the PHPUnit test cleanup for 7.2"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/join-the-phpunit-test-cleanup-for-7-2-pnxhpj9it#faq","mainEntity":[{"@type":"Question","name":"How many assertEquals() calls still need to be converted to assertSame() in WordPress core's test suite?","acceptedAnswer":{"@type":"Answer","text":"There are 501 assertEquals() calls remaining across 124 files in the WordPress core PHPUnit test suite. Converting them to assertSame() matters because assertSame() also checks type, catching falsy-value bugs that assertEquals() misses. Contributors can claim a directory and run npm run test:php against it to verify no assertEquals() calls remain unaddressed. Developers tightening test assertions across a large PHP codebase can track WordPress core's approach on daily.dev."}},{"@type":"Question","name":"How many tests in WordPress core have assertions that don't actually test anything?","acceptedAnswer":{"@type":"Answer","text":"Trunk carries 101 @doesNotPerformAssertions annotations spread across 26 files, with 98 of them in REST controller tests. The root cause is structural, and a proposed fix in the base testcase (ticket #66073) aims to address it, while a per-file cleanup pass can start immediately without waiting for that fix. Anyone auditing PHPUnit suites for hollow assertions can follow this cleanup pattern via daily.dev."}},{"@type":"Question","name":"What is the prerequisite work needed before WordPress core can upgrade to PHPUnit 12?","acceptedAnswer":{"@type":"Answer","text":"WordPress core must first split and rename its test classes so each file follows a one-class-per-unit-of-code pattern, with file names matching class names. This class-splitting effort, tracked under ticket #65208, has stalled for lack of contributor attention despite eighteen open pull requests, and is a direct prerequisite for adopting PHPUnit 12. Teams planning a PHPUnit major version upgrade can see how WordPress core sequenced its prep work on daily.dev."}}]}
```

