diff options
Diffstat (limited to 'Zend/tests/attributes/004_name_resolution.phpt')
-rw-r--r-- | Zend/tests/attributes/004_name_resolution.phpt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Zend/tests/attributes/004_name_resolution.phpt b/Zend/tests/attributes/004_name_resolution.phpt index 6f266908b5..aececca0d4 100644 --- a/Zend/tests/attributes/004_name_resolution.phpt +++ b/Zend/tests/attributes/004_name_resolution.phpt @@ -2,12 +2,15 @@ Resolve attribute names --FILE-- <?php -function dump_attributes($attributes) { - $arr = []; - foreach ($attributes as $attribute) { - $arr[] = ['name' => $attribute->getName(), 'args' => $attribute->getArguments()]; + +namespace { + function dump_attributes($attributes) { + $arr = []; + foreach ($attributes as $attribute) { + $arr[] = ['name' => $attribute->getName(), 'args' => $attribute->getArguments()]; + } + var_dump($arr); } - var_dump($arr); } namespace Doctrine\ORM\Mapping { |