Homec4science

Add PHPAST test cases for most lexer patterns

Authored by epriestley <git@epriestley.com> on Jan 21 2014, 23:32.

Description

Add PHPAST test cases for most lexer patterns

Summary: Ref T4334. Adds test cases for most of the lexer rules: tags, literals, and comments. Remaining lexer rules are mostly difficult to test in isolation, or have a known issue in the case of HEREDOC.

Test Plan: The JSON dumps aren't very human readable, so I'm verifying that the parser output is sane using the web UI PHPAST tool before committing it to tests.

Reviewers: btrahan, Firehed

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4334

Differential Revision: https://secure.phabricator.com/D8026

Details

Committed
epriestley <git@epriestley.com>Jan 21 2014, 23:32
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcded4338fe33: Add unit test scaffolding for XHPAST/PHPAST
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU75feb3d50b23: Add PHPAST test cases for most lexer patterns (authored by epriestley <git@epriestley.com>).Jan 21 2014, 23:32