Skip to content

Commit d00e60d

Browse files
committed
feat: Add description field to Test attribute
1 parent d47e7c5 commit d00e60d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Attribute/Test.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@
88
* Marks a method or a function as a test.
99
*/
1010
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_FUNCTION)]
11-
final class Test {}
11+
final class Test
12+
{
13+
public function __construct(
14+
public string $description = '',
15+
) {}
16+
}

0 commit comments

Comments
 (0)