From 92b600775fa4a55b9ece9148843e4fa7dbed5bbc Mon Sep 17 00:00:00 2001 From: z7zmey Date: Thu, 8 Feb 2018 23:44:21 +0200 Subject: [PATCH] For tests --- node/stmt/t_for_test.go | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 node/stmt/t_for_test.go diff --git a/node/stmt/t_for_test.go b/node/stmt/t_for_test.go new file mode 100644 index 0000000..a390fff --- /dev/null +++ b/node/stmt/t_for_test.go @@ -0,0 +1,60 @@ +package stmt_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/expr/binary_op" + + "github.com/z7zmey/php-parser/node/expr" + "github.com/z7zmey/php-parser/node/expr/assign_op" + + "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 TestFor(t *testing.T) { + src := `