From 9590f434427609998d985e052bbdd3f23a43b345 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Thu, 8 Feb 2018 18:26:28 +0200 Subject: [PATCH] switch case default tests --- node/stmt/t_switch_case_default_test.go | 88 +++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 node/stmt/t_switch_case_default_test.go diff --git a/node/stmt/t_switch_case_default_test.go b/node/stmt/t_switch_case_default_test.go new file mode 100644 index 0000000..df301bd --- /dev/null +++ b/node/stmt/t_switch_case_default_test.go @@ -0,0 +1,88 @@ +package stmt_test + +import ( + "bytes" + "testing" + + "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 TestAltSwitch(t *testing.T) { + src := `