[phd] attribute-constants-v2: fix spaces in tests

From: Date: Fri, 11 Sep 2026 14:26:12 +0000
Subject: [phd] attribute-constants-v2: fix spaces in tests
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23746@lists.php.net to get a copy of this message
Author: Jordi Kroon (jordikroon) Date: 2026-09-11T16:04:41+02:00 Commit: https://github.com/php/phd/commit/9a098ffd4d575de46edf691e446f3ffd7baa588b Raw diff: https://github.com/php/phd/commit/9a098ffd4d575de46edf691e446f3ffd7baa588b.diff fix spaces in tests Changed paths: M tests/package/generic/attribute_formatting_002.phpt M tests/package/generic/attribute_formatting_003.phpt M tests/package/generic/attribute_formatting_005.phpt Diff: diff --git a/tests/package/generic/attribute_formatting_002.phpt b/tests/package/generic/attribute_formatting_002.phpt index ef6f021f..2fe743b0 100644 --- a/tests/package/generic/attribute_formatting_002.phpt +++ b/tests/package/generic/attribute_formatting_002.phpt @@ -50,7 +50,7 @@ Content: <div class="section"> <p class="para">1. Class with unknown attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[\UnknownAttribute]</span><br> <span class="attribute">#[\AnotherUnknownAttribute]</span><br> <span class="modifier">class</span> <strong class="classname">DateTime</strong> @@ -61,7 +61,7 @@ Content: <div class="section"> <p class="para">2. Class with known attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute"><a href="file.knownattribute.is.in.html">#[\KnownAttribute]</a> </span><br> <span class="attribute"><a href="file.anotherknownattribute.is.in.html">#[\AnotherKnownAttribute]</a> </span><br> <span class="modifier">class</span> <strong class="classname">DateTime</strong> @@ -105,7 +105,7 @@ Content: <div class="section"> <p class="para">7. Class, constructor and methods with unknown attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[\UnknownAttribute]</span><br> <span class="attribute">#[\AnotherUnknownAttribute]</span><br> <span class="modifier">class</span> <strong class="classname">DateTime</strong> @@ -129,7 +129,7 @@ Content: <div class="section"> <p class="para">8. Class, constructor and methods with known attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute"><a href="file.knownattribute.is.in.html">#[\KnownAttribute]</a> </span><br> <span class="attribute"><a href="file.anotherknownattribute.is.in.html">#[\AnotherKnownAttribute]</a> </span><br> <span class="modifier">class</span> <strong class="classname">DateTime</strong> @@ -167,4 +167,4 @@ Content: </div> -</div> +</div> \ No newline at end of file diff --git a/tests/package/generic/attribute_formatting_003.phpt b/tests/package/generic/attribute_formatting_003.phpt index b1066f9c..4bf942e2 100644 --- a/tests/package/generic/attribute_formatting_003.phpt +++ b/tests/package/generic/attribute_formatting_003.phpt @@ -52,7 +52,7 @@ Content: <div class="section"> <p class="para">1. Property/Constant with unknown attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="modifier">class</span> <strong class="classname">ClassName</strong> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties/Constants */</div> @@ -70,7 +70,7 @@ Content: <div class="section"> <p class="para">2. Property/Constant with known attributes</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="modifier">class</span> <strong class="classname">ClassName</strong> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties/Constants */</div> @@ -88,7 +88,7 @@ Content: <div class="section"> <p class="para">3. Constant of a class with attribute</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[\UnknownAttribute]</span><br> <span class="modifier">class</span> <strong class="classname">ClassName</strong> {</div> @@ -102,4 +102,4 @@ Content: }</div> </div> -</div> +</div> \ No newline at end of file diff --git a/tests/package/generic/attribute_formatting_005.phpt b/tests/package/generic/attribute_formatting_005.phpt index 96e95aa1..720b368f 100644 --- a/tests/package/generic/attribute_formatting_005.phpt +++ b/tests/package/generic/attribute_formatting_005.phpt @@ -54,7 +54,7 @@ Content: <div class="section"> <p class="para">1. Attribute with literal named arguments</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[<a href="class.deprecated.html">\Deprecated</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;since: '8.5',<br>&nbsp;&nbsp;&nbsp;&nbsp;message: 'Deprecated since PHP 8.4'<br>)]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> @@ -65,7 +65,7 @@ Content: <div class="section"> <p class="para">2. Attribute with single literal positional argument</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[<a href="class.deprecated.html">\Deprecated</a>('Deprecated since PHP 8.4')]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> @@ -76,7 +76,7 @@ Content: <div class="section"> <p class="para">3. Unknown attribute with literal argument</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[\UnknownAttribute(foo: 'bar')]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> @@ -87,7 +87,7 @@ Content: <div class="section"> <p class="para">4. Namespaced attribute with literal argument</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[\Some\Namespaced\Attribute(value: 42)]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> @@ -98,7 +98,7 @@ Content: <div class="section"> <p class="para">5. Multi-line attribute with literal class constant arguments</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[<a href="class.attribute.html">\Attribute</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="class.attribute.html#attribute.constants.target-function">Attribute::TARGET_FUNCTION</a><br>&nbsp;&nbsp;&nbsp;&nbsp;| <a href="class.attribute.html#attribute.constants.target-method">Attribute::TARGET_METHOD</a><br>&nbsp;&nbsp;&nbsp;&nbsp;| <a href="class.attribute.html#attribute.constants.target-class">Attribute::TARGET_CLASS</a><br>)]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> @@ -109,11 +109,11 @@ Content: <div class="section"> <p class="para">6. Attribute with mix of known and unknown class constants</p> <div class="classsynopsis"><div class="classsynopsisinfo"> - + <span class="attribute">#[<a href="class.attribute.html">\Attribute</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="class.attribute.html#attribute.constants.target-class">Attribute::TARGET_CLASS</a><br>&nbsp;&nbsp;&nbsp;&nbsp;| Unknown::CONST<br>)]</span><br> <span class="modifier">final</span> <span class="modifier">class</span> <strong class="classname">Deprecated</strong> {</div> }</div> </div> -</div> +</div> \ No newline at end of file

« previous php.doc.cvs (#23746) next »