From 818199f12e0dd31a70d9e09feb70f369bd39e0d7 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Thu, 8 Feb 2018 22:58:14 +0200 Subject: [PATCH] Declare tests --- node/stmt/t_declare_test.go | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 node/stmt/t_declare_test.go diff --git a/node/stmt/t_declare_test.go b/node/stmt/t_declare_test.go new file mode 100644 index 0000000..a19aaaa --- /dev/null +++ b/node/stmt/t_declare_test.go @@ -0,0 +1,65 @@ +package stmt_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/scalar" + + "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 TestDeclare(t *testing.T) { + src := `