Page MenuHomePhabricator

Add a PHPAST test case for most of the PHP grammar
ClosedPublic

Authored by epriestley on Jan 21 2014, 6:19 PM.
Tags
None
Referenced Files
F19827578: D8028.id18150.diff
Mon, Mar 9, 10:29 AM
F19827284: D8028.id18150.diff
Mon, Mar 9, 7:44 AM
F19821290: D8028.diff
Fri, Mar 6, 8:41 PM
F19793110: D8028.id18150.diff
Thu, Feb 26, 4:11 PM
F19791175: D8028.id18172.diff
Wed, Feb 25, 10:17 PM
F19649293: D8028.diff
Feb 6 2026, 8:23 AM
F19526470: D8028.id18172.diff
Jan 18 2026, 5:18 PM
F19520336: D8028.diff
Jan 16 2026, 12:59 PM
Subscribers

Details

Summary

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.

Test Plan

Examined parse manually in PHPAST web tool. Ran unit tests.

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

btrahan added inline comments.
src/parser/xhpast/__tests__/data/php-syntax.php.test
118–119

what the heck should this do?

207

what does this do?

src/parser/xhpast/__tests__/data/php-syntax.php.test
118–119

fire the author

207

I think it always returns null, but honestly I don't know.