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
F18734560: D8028.id.diff
Tue, Sep 30, 10:56 PM
F18628226: D8028.id.diff
Tue, Sep 16, 5:54 AM
F18625970: D8028.diff
Tue, Sep 16, 12:03 AM
F18164415: D8028.id.diff
Aug 15 2025, 6:30 AM
F18159074: D8028.diff
Aug 15 2025, 12:39 AM
F18106874: D8028.diff
Aug 10 2025, 11:29 PM
F18083924: D8028.diff
Aug 5 2025, 12:26 PM
F17701430: D8028.id18150.diff
Jul 15 2025, 9:35 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.