Page MenuHomePhabricator

Add unit test scaffolding for XHPAST/PHPAST
ClosedPublic

Authored by epriestley on Jan 21 2014, 5:18 PM.
Tags
None
Referenced Files
F18734557: D8025.id.diff
Tue, Sep 30, 10:56 PM
F18630249: D8025.id.diff
Tue, Sep 16, 11:09 AM
F18629641: D8025.diff
Tue, Sep 16, 9:29 AM
F18623886: D8025.diff
Mon, Sep 15, 5:57 PM
F18620169: D8025.id18146.diff
Mon, Sep 15, 4:26 AM
F18599787: D8025.diff
Sat, Sep 13, 8:13 AM
F18142042: D8025.id.diff
Aug 14 2025, 11:30 AM
F18106869: D8025.diff
Aug 10 2025, 11:29 PM
Subscribers

Details

Summary

Ref T4334. Allows us to build tests against this so we can accomplish goals described in T4334 with greater confidence.

This allows three types of tests to be defined:

  • pass: Input is expected to parse into a specific tree.
  • fail-syntax: Input is expected to fail with a syntax error.
  • fail-parse: Input is expected to parse the wrong tree.

The latter two test types allow us to write passing tests of broken/bad behavior while keeping it clear which tests are passing-and-good and which are passing-but-broken.

Test Plan

Ran unit tests.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped