Skip to content

PHPUnit workload fails parsing bundled Util/Test.php #1906

Description

@chubes4

Problem

A WordPress PHPUnit workload fails before repository test discovery because the bundled PHPUnit source cannot be parsed.

Reproduction

From a Data Machine Code worktree, run:

homeboy review test data-machine-events --path /var/lib/datamachine/workspace/data-machine-events@fix-486-event-index-integrity --placement local

Focused and unfiltered runs fail identically.

Error

ParseError: Unclosed '{' on line 154 at /tmp/wp-codebox-inputs/0-wp-codebox-vendor-73845ca47d2f/phpunit/phpunit/src/Util/Test.php:155

The repository's modified PHP files pass php -l, and the failure points to the WP Codebox-provided PHPUnit vendor payload before any project test executes.

Runtime

  • wp-codebox-workspace: 0.12.14
  • @automattic/wp-codebox-core: 0.12.14
  • @automattic/wp-codebox-playground: 0.12.14
  • WordPress: latest

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