From 289f4d0767ca6b04982b7757374cb2c228f5b692 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Fri, 12 Jan 2018 15:13:05 +0200 Subject: [PATCH] update scalar tests --- node/scalar/magic_constant_test.go | 30 +++++++++ node/scalar/visitor_test.go | 103 +++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 node/scalar/magic_constant_test.go create mode 100644 node/scalar/visitor_test.go diff --git a/node/scalar/magic_constant_test.go b/node/scalar/magic_constant_test.go new file mode 100644 index 0000000..72b23a6 --- /dev/null +++ b/node/scalar/magic_constant_test.go @@ -0,0 +1,30 @@ +package scalar_test + +import ( + "bytes" + "testing" + + "github.com/kylelemons/godebug/pretty" + "github.com/z7zmey/php-parser/node" + "github.com/z7zmey/php-parser/node/scalar" + "github.com/z7zmey/php-parser/node/stmt" + "github.com/z7zmey/php-parser/parser" +) + +func TestMagicConstant(t *testing.T) { + src := `