From ff0651a10237110c6ec3bf75133b411c4962a6ae Mon Sep 17 00:00:00 2001 From: z7zmey Date: Fri, 9 Feb 2018 13:59:19 +0200 Subject: [PATCH] Return tests --- node/stmt/t_function_test.go | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/node/stmt/t_function_test.go b/node/stmt/t_function_test.go index 7408b3a..3b59ef6 100644 --- a/node/stmt/t_function_test.go +++ b/node/stmt/t_function_test.go @@ -1,6 +1,7 @@ package stmt_test import ( + "github.com/z7zmey/php-parser/node/scalar" "github.com/z7zmey/php-parser/node/name" "bytes" "testing" @@ -32,8 +33,31 @@ func TestSimpleFunction(t *testing.T) { assertEqual(t, expected, actual) } +func TestFunctionReturn(t *testing.T) { + src := `