﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
65893	Many PHPUnit tests are not well isolated	mdawaffe	lancewillett	"In talking about tests at WCUS 2026, we reminded ourselves that many of our PHPUnit tests leak state and/or depend on previously leaked state. This is easy to see by running the tests in an arbitrary order:

{{{
npm run test:php -- --order-by=random
}}}

This lack of isolation can result in varied problems:
* A test cannot be run by itself
* A test class cannot be run by itself
* A test passes because of some previously leaked state and not because the test is actually testing the correct thing
* etc.

Reducing state leaking reduces fragility, increases confidence that tests are testing what they should be testing, and is a likely prerequisite for future parallel test running.

This ticket is for sharing a grab-bag of unrelated test fixes we worked on during WCUS."	task (blessed)	accepted	low	7.2	Build/Test Tools		trivial		has-patch has-unit-tests		tests
