From 6343404ac5d7c51048bbef7a081c0478b416f61c Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 14:53:48 +0200 Subject: [PATCH] Variable tests --- node/expr/t_variable_test.go | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 node/expr/t_variable_test.go diff --git a/node/expr/t_variable_test.go b/node/expr/t_variable_test.go new file mode 100644 index 0000000..557906b --- /dev/null +++ b/node/expr/t_variable_test.go @@ -0,0 +1,49 @@ +package expr_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/expr" + + "github.com/z7zmey/php-parser/node" + "github.com/z7zmey/php-parser/node/stmt" + "github.com/z7zmey/php-parser/php5" + "github.com/z7zmey/php-parser/php7" +) + +func TestVariable(t *testing.T) { + src := `