-
#[\KnownAttribute]
-
#[\AnotherKnownAttribute]
+
#[\KnownAttribute]
+
#[\AnotherKnownAttribute]
public
readonly
string
diff --git a/tests/package/generic/attribute_formatting_004.phpt b/tests/package/generic/attribute_formatting_004.phpt
new file mode 100644
index 00000000..fca533ac
--- /dev/null
+++ b/tests/package/generic/attribute_formatting_004.phpt
@@ -0,0 +1,91 @@
+--TEST--
+Attribute formatting 004 - Attribute with constant arguments
+--FILE--
+xmlFile = $xmlFile;
+
+$format = new TestGenericChunkedXHTML($config, $outputHandler);
+
+$format->SQLiteIndex(
+ null, null,
+ "class.attribute",
+ "class.attribute",
+ "", "", "", "", "", "", 0,
+);
+$format->SQLiteIndex(
+ null, null,
+ "attribute.constants.target-class",
+ "class.attribute",
+ "", "", "", "", "", "", 0,
+);
+$format->SQLiteIndex(
+ null, null,
+ "attribute.constants.target-class-constant",
+ "class.attribute",
+ "", "", "", "", "", "", 0,
+);
+$format->SQLiteIndex(
+ null, null,
+ "attribute.constants.target-property",
+ "class.attribute",
+ "", "", "", "", "", "", 0,
+);
+
+$render = new TestRender(new Reader($outputHandler), $config, $format);
+
+$render->run();
+?>
+--EXPECT--
+Filename: attribute-formatting-004.html
+Content:
+
diff --git a/tests/package/generic/data/attribute_formatting_004.xml b/tests/package/generic/data/attribute_formatting_004.xml
new file mode 100644
index 00000000..ef67532d
--- /dev/null
+++ b/tests/package/generic/data/attribute_formatting_004.xml
@@ -0,0 +1,45 @@
+
+
+ 1. Attribute with one constant argument
+
+
+ #[\Attribute(Attribute::TARGET_CLASS)]
+ final
+ Attribute
+
+
+
+
+
+ 2. Attribute with multiple constant arguments
+
+
+ #[\Attribute(Attribute::TARGET_CLASS_CONSTANT|Attribute::TARGET_PROPERTY)]
+ final
+ Attribute
+
+
+
+
+
+ 3. Attribute with unknown constant argument
+
+
+ #[\Attribute(Attribute::TARGET_UNKNOWN)]
+ final
+ Attribute
+
+
+
+
+
+ 4. Unknown attribute with constant argument
+
+
+ #[\UnknownAttribute(Attribute::TARGET_CLASS)]
+ final
+ Attribute
+
+
+
+