From 14493d67e9e8403788b47e9d61d5091ee2c609cd Mon Sep 17 00:00:00 2001 From: z7zmey Date: Thu, 8 Feb 2018 20:06:01 +0200 Subject: [PATCH] ClassMethod tests --- node/stmt/t_class_method_test.go | 96 ++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 node/stmt/t_class_method_test.go diff --git a/node/stmt/t_class_method_test.go b/node/stmt/t_class_method_test.go new file mode 100644 index 0000000..3b53a3f --- /dev/null +++ b/node/stmt/t_class_method_test.go @@ -0,0 +1,96 @@ +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 TestSimpleClassMethod(t *testing.T) { + src := `