1--TEST--
2Verify that attributes for internal functions correctly support named arguments.
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8$reflection = new ReflectionFunction("zend_test_attribute_with_named_argument");
9$attribute = $reflection->getAttributes()[0];
10var_dump($attribute->getArguments());
11var_dump($attribute->newInstance());
12
13?>
14--EXPECTF--
15array(1) {
16  ["arg"]=>
17  string(3) "foo"
18}
19object(ZendTestAttributeWithArguments)#3 (1) {
20  ["arg"]=>
21  string(3) "foo"
22}
23