From 93e60c95a61180b16ea745b9b61de1f2ea29cf23 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Fri, 9 Feb 2018 11:56:49 +0200 Subject: [PATCH] Function tests --- node/stmt/t_function_test.go | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 node/stmt/t_function_test.go diff --git a/node/stmt/t_function_test.go b/node/stmt/t_function_test.go new file mode 100644 index 0000000..7408b3a --- /dev/null +++ b/node/stmt/t_function_test.go @@ -0,0 +1,77 @@ +package stmt_test + +import ( + "github.com/z7zmey/php-parser/node/name" + "bytes" + "testing" + + "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 TestSimpleFunction(t *testing.T) { + src := `