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
F15485321: D8028.diff
Wed, Apr 9, 11:03 PM
F15483307: D8028.id18150.diff
Wed, Apr 9, 11:44 AM
F15483092: D8028.id18172.diff
Wed, Apr 9, 9:55 AM
F15479293: D8028.id.diff
Tue, Apr 8, 5:58 AM
F15478403: D8028.diff
Mon, Apr 7, 10:56 PM
F15285065: D8028.id18172.diff
Mar 4 2025, 11:26 AM
Unknown Object (File)
Feb 25 2025, 8:40 AM
Unknown Object (File)
Feb 9 2025, 4:12 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.