From 8e254dd8864feca8f48c5a405be667a63f975fa6 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 13:42:59 +0200 Subject: [PATCH] New tests --- node/expr/t_new_test.go | 114 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 node/expr/t_new_test.go diff --git a/node/expr/t_new_test.go b/node/expr/t_new_test.go new file mode 100644 index 0000000..d2a07cf --- /dev/null +++ b/node/expr/t_new_test.go @@ -0,0 +1,114 @@ +package expr_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/name" + + "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 TestNew(t *testing.T) { + src := `