Skip to content

Commit a60f8bb

Browse files
committed
fix(tests): replace attributes by annotation for older versions
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent eee796c commit a60f8bb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/lib/Preview/SVGTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ public static function dataGetThumbnailSVGHrefNamespace(): array {
8686
];
8787
}
8888

89-
#[\PHPUnit\Framework\Attributes\DataProvider('dataGetThumbnailSvgEncoded')]
90-
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('imagick')]
89+
/**
90+
* @dataProvider dataGetThumbnailSvgEncoded
91+
* @requires extension imagick
92+
*/
9193
public function testGetThumbnailSvgEncoded(string $content): void {
9294
$handle = fopen('php://temp', 'w+');
9395
fwrite($handle, $content);

0 commit comments

Comments
 (0)