Skip to content

Prevent PHPUnit result cache writes from readonly plugin mounts #1803

Description

@chubes4

WP Codebox #1799 snapshots readonly mounts correctly, but wordpress.phpunit uses an in-process PHPUnit runner whose argument adapter ignores --cache-result-file. The default PHPUnit result cache is written into the mounted plugin path, mutating the host source during a readonly Homeboy test run.

Reproduction: run Homeboy Extensions wordpress/scripts/test/playground-db-activation-smoke.sh against merged WP Codebox #1799, then observe wordpress/tests/fixtures/test-db-activation-host/.phpunit.result.cache.

Expected: the runtime disables PHPUnit result caching or places it in a sandbox-private /tmp path. This must preserve the readonly mount snapshot contract and allow downstream runners to prove source-tree immutability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions