Two things make a test unrepeatable, and both are usually called directly from the code under test: the current time and a random number. Neither can be asserted…
Reading a possibly-absent array key has meant naming the expression twice — once in isset(), once as the value — which is fine until the expression is $config[‘db’][‘replicas’][0]…
Passing a string where an object was hinted used to be a recoverable fatal, which in practice meant an unrecoverable one. It is an exception now, which makes…
An import loop calling wp_insert_post() is doing everything a human clicking Publish does: revisions, term counting, ping status, and every plugin listening on save_post. For ten posts that…