Page MenuHomePhabricator

Add unit test scaffolding for XHPAST/PHPAST
ClosedPublic

Authored by epriestley on Jan 21 2014, 5:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 11:29 AM
Unknown Object (File)
Oct 29 2024, 2:08 PM
Unknown Object (File)
Oct 22 2024, 11:19 PM
Unknown Object (File)
Oct 14 2024, 5:11 AM
Unknown Object (File)
Sep 15 2024, 10:26 AM
Unknown Object (File)
Sep 6 2024, 10:00 AM
Unknown Object (File)
Sep 5 2024, 2:03 PM
Unknown Object (File)
Aug 26 2024, 5:53 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