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
Unknown Object (File)
Wed, Jun 18, 4:07 AM
Unknown Object (File)
May 5 2025, 3:34 AM
Unknown Object (File)
Apr 19 2025, 1:09 AM
Unknown Object (File)
Apr 9 2025, 11:03 PM
Unknown Object (File)
Apr 9 2025, 11:44 AM
Unknown Object (File)
Apr 9 2025, 9:55 AM
Unknown Object (File)
Apr 8 2025, 5:58 AM
Unknown Object (File)
Apr 7 2025, 10:56 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.