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 := `