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)
Sat, Apr 20, 6:19 PM
Unknown Object (File)
Tue, Apr 16, 3:16 PM
Unknown Object (File)
Tue, Apr 16, 12:11 AM
Unknown Object (File)
Tue, Apr 9, 3:28 AM
Unknown Object (File)
Thu, Mar 28, 8:22 PM
Unknown Object (File)
Jan 28 2024, 10:41 PM
Unknown Object (File)
Jan 27 2024, 5:49 AM
Unknown Object (File)
Jan 22 2024, 10:23 AM
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.