Skip to content

Commit 3e31218

Browse files
committed
image-cdn: Fix PHPUnit CoversFunction, leading backslash is not allowed
1 parent 0dc86e2 commit 3e31218

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: fixed
3+
Comment: Fix PHPUnit CoversFunction, leading backslash is not allowed.
4+
5+

projects/packages/image-cdn/tests/php/Activitypub_Compat_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
require __DIR__ . '/../../src/compatibility/activitypub.php';
1313

1414
/**
15-
* @covers ::\Automattic\Jetpack\Image_CDN\Compatibility\load_activitypub_compat
15+
* @covers ::Automattic\Jetpack\Image_CDN\Compatibility\load_activitypub_compat
1616
*/
17-
#[CoversFunction( '\\Automattic\\Jetpack\\Image_CDN\\Compatibility\\load_activitypub_compat' )]
17+
#[CoversFunction( 'Automattic\\Jetpack\\Image_CDN\\Compatibility\\load_activitypub_compat' )]
1818
class Activitypub_Compat_Test extends BaseTestCase {
1919
/**
2020
* Test that we do not disable CDN for ActivityPub requests by default.

projects/packages/image-cdn/tests/php/Breakdance_Compat_Test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
require __DIR__ . '/../../src/compatibility/breakdance.php';
1414

1515
/**
16-
* @covers ::\Automattic\Jetpack\Image_CDN\Compatibility\load_breakdance_compat
17-
* @covers ::\Automattic\Jetpack\Image_CDN\Compatibility\use_image_cdn
16+
* @covers ::Automattic\Jetpack\Image_CDN\Compatibility\load_breakdance_compat
17+
* @covers ::Automattic\Jetpack\Image_CDN\Compatibility\use_image_cdn
1818
*/
19-
#[CoversFunction( '\\Automattic\\Jetpack\\Image_CDN\\Compatibility\\load_breakdance_compat' )]
20-
#[CoversFunction( '\\Automattic\\Jetpack\\Image_CDN\\Compatibility\\use_image_cdn' )]
19+
#[CoversFunction( 'Automattic\\Jetpack\\Image_CDN\\Compatibility\\load_breakdance_compat' )]
20+
#[CoversFunction( 'Automattic\\Jetpack\\Image_CDN\\Compatibility\\use_image_cdn' )]
2121
class Breakdance_Compat_Test extends BaseTestCase {
2222
/**
2323
* Test that CDN is enabled for Breakdance content by default.

0 commit comments

Comments
 (0)