From: Michael Wallner Date: Thu, 14 Apr 2016 07:48:24 +0000 (+0200) Subject: add missing tests X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5d374bba44fd23fdda37bdebbb6e551ff22da028;p=m6w6%2Fext-psi add missing tests --- diff --git a/tests/parser/enum/enum001.phpt b/tests/parser/enum/enum001.phpt new file mode 100644 index 0000000..b186de5 --- /dev/null +++ b/tests/parser/enum/enum001.phpt @@ -0,0 +1,16 @@ +--TEST-- +enum +--SKIPIF-- + +--FILE-- +===TEST=== + +===DONE=== +--EXPECT-- +===TEST=== +bool(true) +===DONE=== diff --git a/tests/parser/enum/enum001.psi b/tests/parser/enum/enum001.psi new file mode 100644 index 0000000..0d37876 --- /dev/null +++ b/tests/parser/enum/enum001.psi @@ -0,0 +1,17 @@ +enum a { + A, + B, + C +} + +enum b { + FAILURE = -1, + SUCCESS = 0 +} + +enum c { + no = -1, + maybe = SUCCESS, + yes, + sure = yes +}