From 4c64183e0c5537732076f1734a479fbaee526a1c Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 11:31:57 +0200 Subject: [PATCH] Add Clusure ReturnType test --- node/expr/t_closure_test.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/node/expr/t_closure_test.go b/node/expr/t_closure_test.go index 9628395..301694e 100644 --- a/node/expr/t_closure_test.go +++ b/node/expr/t_closure_test.go @@ -4,6 +4,8 @@ import ( "bytes" "testing" + "github.com/z7zmey/php-parser/node/name" + "github.com/z7zmey/php-parser/node/expr" "github.com/z7zmey/php-parser/node" @@ -80,3 +82,27 @@ func TestClosureUse(t *testing.T) { actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") assertEqual(t, expected, actual) } + +func TestClosureReturnType(t *testing.T) { + src := `