From b7607f82df5d82278d999c45dd07e2c8bf15ce46 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 13:06:45 +0200 Subject: [PATCH] InstanceOf tests --- node/expr/t_instance_of_test.go | 90 +++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 node/expr/t_instance_of_test.go diff --git a/node/expr/t_instance_of_test.go b/node/expr/t_instance_of_test.go new file mode 100644 index 0000000..58aca44 --- /dev/null +++ b/node/expr/t_instance_of_test.go @@ -0,0 +1,90 @@ +package expr_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node/name" + + "github.com/z7zmey/php-parser/node/expr" + + "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 TestInstanceOf(t *testing.T) { + src := `