Assertion failed, expected values to be equal (at PHPASTParserTestCase.php:105): Parser output for "anonymous_class.php.test".
Expected vs Actual Output Diff
--- Old Value
+++ New Value
@@ -1,583 +1,120 @@
-'{
- "tree": [
- 9000,
- 0,
- 64,
- [
- [
- 9006,
- 0,
- 63,
- [
- [
- 9007,
- 0,
- 0
- ],
- [
- 9004,
- 2,
- 12,
- [
- [
- 9077,
- 2,
- 11,
- [
- [
- 9047,
- 2,
- 2
- ],
- [
- 9081,
- 4,
- 4
- ],
- [
- 9074,
- 6,
- 11,
- [
- [
- 9051,
- 10,
- 11,
- [
- [
- 9005
- ],
- [
- 9005
- ],
- [
- 9005
- ],
- [
- 9005
- ],
- [
- 9006,
- 10,
- 11
- ]
- ]
- ],
- [
- 9005
- ]
- ]
- ]
- ]
- ]
- ]
- ],
- [
- 9004,
- 14,
- 63,
- [
- [
- 9077,
- 14,
- 62,
- [
- [
- 9047,
- 14,
- 14
- ],
- [
- 9081,
- 16,
- 16
- ],
- [
- 9074,
- 18,
- 62,
- [
- [
- 9051,
- 25,
- 62,
- [
- [
- 9005
- ],
- [
- 9005
- ],
- [
- 9054,
- 25,
- 27,
- [
- [
- 9090,
- 27,
- 27
- ]
- ]
- ],
- [
- 9055,
- 29,
- 31,
- [
- [
- 9090,
- 31,
- 31
- ]
- ]
- ],
- [
- 9006,
- 33,
- 62,
- [
- [
- 9004,
- 35,
- 38,
- [
- [
- 9063,
- 35,
- 37,
- [
- [
- 9070,
- 35,
- 35,
- [
- [
- 9013,
- 35,
- 35
- ]
- ]
- ],
- [
- 9064,
- 37,
- 37,
- [
- [
- 9047,
- 37,
- 37
- ],
- [
- 9005
- ]
- ]
- ]
- ]
- ]
- ]
- ],
- [
- 9004,
- 40,
- 60,
- [
- [
- 9067,
- 40,
- 60,
- [
- [
- 9068,
- 40,
- 40,
- [
- [
- 9013,
- 40,
- 40
- ]
- ]
- ],
- [
- 9005
- ],
- [
- 9013,
- 44,
- 44
- ],
- [
- 9059,
- 45,
- 47,
- [
- [
- 9060,
- 46,
- 46,
- [
- [
- 9005
- ],
- [
- 9047,
- 46,
- 46
- ],
- [
- 9005
- ]
- ]
- ]
- ]
- ],
- [
- 9005
- ],
- [
- 9005
- ],
- [
- 9006,
- 49,
- 60,
- [
- [
- 9004,
- 51,
- 58,
- [
- [
- 9077,
- 51,
- 57,
- [
- [
- 9092,
- 51,
- 53,
- [
- [
- 9047,
- 51,
- 51
- ],
- [
- 9013,
- 53,
- 53
- ]
- ]
- ],
- [
- 9081,
- 55,
- 55
- ],
- [
- 9047,
- 57,
- 57
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ],
- [
- 9095,
- 21,
- 23,
- [
- [
- 9086,
- 22,
- 22
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ],
- "stream": [
- [
- 373,
- 5
- ],
- [
- 377,
- 2
- ],
- [
- 313,
- 2
- ],
- [
- 377,
- 1
- ],
- [
- 61,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 302,
- 3
- ],
- [
- 377,
- 1
- ],
- [
- 358,
- 5
- ],
- [
- 377,
- 1
- ],
- [
- 123,
- 1
- ],
- [
- 125,
- 1
- ],
- [
- 59,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 313,
- 2
- ],
- [
- 377,
- 1
- ],
- [
- 61,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 302,
- 3
- ],
- [
- 377,
- 1
- ],
- [
- 358,
- 5
- ],
- [
- 40,
- 1
- ],
- [
- 309,
- 2
- ],
- [
- 41,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 360,
- 7
- ],
- [
- 377,
- 1
- ],
- [
- 311,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 361,
- 10
- ],
- [
- 377,
- 1
- ],
- [
- 311,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 123,
- 1
- ],
- [
- 377,
- 3
- ],
- [
- 350,
- 7
- ],
- [
- 377,
- 1
- ],
- [
- 313,
- 4
- ],
- [
- 59,
- 1
- ],
- [
- 377,
- 4
- ],
- [
- 352,
- 6
- ],
- [
- 377,
- 1
- ],
- [
- 339,
- 8
- ],
- [
- 377,
- 1
- ],
- [
- 311,
- 11
- ],
- [
- 40,
- 1
- ],
- [
- 313,
- 4
- ],
- [
- 41,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 123,
- 1
- ],
- [
- 377,
- 5
- ],
- [
- 313,
- 5
- ],
- [
- 362,
- 2
- ],
- [
- 311,
- 3
- ],
- [
- 377,
- 1
- ],
- [
- 61,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 313,
- 4
- ],
- [
- 59,
- 1
- ],
- [
- 377,
- 3
- ],
- [
- 125,
- 1
- ],
- [
- 377,
- 1
- ],
- [
- 125,
- 1
- ],
- [
- 59,
- 1
- ],
- [
- 377,
- 1
- ]
- ]
-}
+'* n_PROGRAM
+ * n_STATEMENT_LIST
+ * n_OPEN_TAG
+ > <?php
+ > "\n\n"
+ * n_STATEMENT
+ * n_BINARY_EXPRESSION
+ * n_VARIABLE
+ > $a
+ > " "
+ * n_OPERATOR
+ > =
+ > " "
+ * n_NEW
+ > new
+ > " "
+ > class
+ > " "
+ * n_CLASS_DECLARATION
+ * n_EMPTY
+ * n_EMPTY
+ * n_EMPTY
+ * n_EMPTY
+ * n_STATEMENT_LIST
+ > {
+ > }
+ * n_EMPTY
+ > ;
+ > "\n"
+ * n_STATEMENT
+ * n_BINARY_EXPRESSION
+ * n_VARIABLE
+ > $b
+ > " "
+ * n_OPERATOR
+ > =
+ > " "
+ * n_NEW
+ > new
+ > " "
+ > class
+ > " "
+ * n_CLASS_DECLARATION
+ * n_EMPTY
+ * n_EMPTY
+ * n_EXTENDS_LIST
+ > extends
+ > " "
+ * n_CLASS_NAME
+ > c
+ > " "
+ * n_IMPLEMENTS_LIST
+ > implements
+ > " "
+ * n_CLASS_NAME
+ > d
+ > " "
+ * n_STATEMENT_LIST
+ > {
+ > "\n "
+ * n_STATEMENT
+ * n_CLASS_MEMBER_DECLARATION_LIST
+ * n_CLASS_MEMBER_MODIFIER_LIST
+ * n_STRING
+ > private
+ > " "
+ * n_CLASS_MEMBER_DECLARATION
+ * n_VARIABLE
+ > $num
+ * n_EMPTY
+ > ;
+ > "\n\n "
+ * n_STATEMENT
+ * n_METHOD_DECLARATION
+ * n_METHOD_MODIFIER_LIST
+ * n_STRING
+ > public
+ * n_EMPTY
+ * n_STRING
+ > __construct
+ * n_DECLARATION_PARAMETER_LIST
+ > (
+ * n_DECLARATION_PARAMETER
+ * n_EMPTY
+ * n_VARIABLE
+ > $num
+ * n_EMPTY
+ > )
+ * n_EMPTY
+ * n_EMPTY
+ * n_STATEMENT_LIST
+ > {
+ > "\n "
+ * n_STATEMENT
+ * n_BINARY_EXPRESSION
+ * n_OBJECT_PROPERTY_ACCESS
+ * n_VARIABLE
+ > $this
+ > ->
+ * n_STRING
+ > num
+ > " "
+ * n_OPERATOR
+ > =
+ > " "
+ * n_VARIABLE
+ > $num
+ > ;
+ > "\n "
+ > }
+ > "\n"
+ > }
+ * n_CALL_PARAMETER_LIST
+ > (
+ * n_NUMERIC_SCALAR
+ > 10
+ > )
+ > ;
+ > "\n"
'
TEST RESULT
TEST RESULT
- Run At
- Apr 7 2020, 9:08 PM