Ref T4334. This test case covers most of the common PHP grammar rules. It's not exhastive and avoids some of the tricky parts, but provides a wide base of rule tests.
Details
Details
- Reviewers
btrahan Firehed - Maniphest Tasks
- T4334: Support PHP5.4+ syntax in XHPAST
- Commits
- rPHU74999552f0cc: Add a PHPAST test case for most of the PHP grammar
Examined parse manually in PHPAST web tool. Ran unit tests.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
src/parser/xhpast/__tests__/data/php-syntax.php.test | ||
---|---|---|
118–119 | always do this it is a good idea |