From 47e365658a4f09eaa597159fff3ea484e2515356 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Thu, 8 Feb 2018 18:42:01 +0200 Subject: [PATCH] try catch finally tests --- node/stmt/t_try_catch_finnaly_test.go | 192 ++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 node/stmt/t_try_catch_finnaly_test.go diff --git a/node/stmt/t_try_catch_finnaly_test.go b/node/stmt/t_try_catch_finnaly_test.go new file mode 100644 index 0000000..7c8b652 --- /dev/null +++ b/node/stmt/t_try_catch_finnaly_test.go @@ -0,0 +1,192 @@ +package stmt_test + +import ( + "github.com/z7zmey/php-parser/node/expr" + "github.com/z7zmey/php-parser/node/name" + "bytes" + "testing" + + "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 TestTry(t *testing.T) { + src := `