From 8b6f570de0ec26b7187f1a344e8a34ea30d0a035 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Fri, 9 Feb 2018 14:08:28 +0200 Subject: [PATCH] Throw tests --- node/stmt/t_throw_test.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 node/stmt/t_throw_test.go diff --git a/node/stmt/t_throw_test.go b/node/stmt/t_throw_test.go new file mode 100644 index 0000000..023a6d5 --- /dev/null +++ b/node/stmt/t_throw_test.go @@ -0,0 +1,30 @@ +package stmt_test + +import ( + "bytes" + "testing" + + "github.com/z7zmey/php-parser/node" + "github.com/z7zmey/php-parser/node/expr" + "github.com/z7zmey/php-parser/node/stmt" + "github.com/z7zmey/php-parser/php5" + "github.com/z7zmey/php-parser/php7" +) + +func TestThrow(t *testing.T) { + src := `