@@ -21,11 +21,11 @@ public function testGenerateWithUrlParam(): void
2121 {
2222 $ decoratedMediaUrlGenerator = $ this ->createMock (AbstractMediaUrlGenerator::class);
2323 $ thumbnailUrlTemplate = $ this ->createMock (ThumbnailUrlTemplateInterface::class);
24- $ thumbnailUrlTemplate ->expects (static :: once ())
24+ $ thumbnailUrlTemplate ->expects ($ this -> once ())
2525 ->method ('getUrl ' )
2626 ->willReturn ('https://localhost/media/123.jpg?width=3000 ' );
2727 $ filesystem = $ this ->createMock (PrefixFilesystem::class);
28- $ filesystem ->expects (static :: once ())
28+ $ filesystem ->expects ($ this -> once ())
2929 ->method ('publicUrl ' )
3030 ->willReturn ('https://localhost ' );
3131
@@ -37,7 +37,7 @@ public function testGenerateWithUrlParam(): void
3737 'ExtensionsAllowList ' => 'jpg ' ,
3838 'ThumbnailPattern ' => '{mediaUrl}/{mediaPath}?width={width} ' ,
3939 ];
40- $ configReader ->expects (static :: any ())
40+ $ configReader ->expects ($ this -> any ())
4141 ->method ('getConfig ' )
4242 ->willReturnCallback (function ($ key ) use ($ defaultPluginConfig ) {
4343 return $ defaultPluginConfig [$ key ] ?? null ;
@@ -68,11 +68,11 @@ public function testGenerateWithExtendedUrlParam(): void
6868 {
6969 $ decoratedMediaUrlGenerator = $ this ->createMock (AbstractMediaUrlGenerator::class);
7070 $ thumbnailUrlTemplate = $ this ->createMock (ThumbnailUrlTemplateInterface::class);
71- $ thumbnailUrlTemplate ->expects (static :: once ())
71+ $ thumbnailUrlTemplate ->expects ($ this -> once ())
7272 ->method ('getUrl ' )
7373 ->willReturn ('https://localhost/media/123.jpg?width=100 ' );
7474 $ filesystem = $ this ->createMock (PrefixFilesystem::class);
75- $ filesystem ->expects (static :: once ())
75+ $ filesystem ->expects ($ this -> once ())
7676 ->method ('publicUrl ' )
7777 ->willReturn ('https://localhost ' );
7878
@@ -84,7 +84,7 @@ public function testGenerateWithExtendedUrlParam(): void
8484 'ExtensionsAllowList ' => 'jpg ' ,
8585 'ThumbnailPattern ' => '{mediaUrl}/{mediaPath}?width={width} ' ,
8686 ];
87- $ configReader ->expects (static :: any ())
87+ $ configReader ->expects ($ this -> any ())
8888 ->method ('getConfig ' )
8989 ->willReturnCallback (function ($ key ) use ($ defaultPluginConfig ) {
9090 return $ defaultPluginConfig [$ key ] ?? null ;
@@ -120,16 +120,16 @@ public function testGenerateWithExtendedUrlParam(): void
120120 public function testGenerateWithInactiveConfig (): void
121121 {
122122 $ decoratedMediaUrlGenerator = $ this ->createMock (AbstractMediaUrlGenerator::class);
123- $ decoratedMediaUrlGenerator ->expects (static :: once ())
123+ $ decoratedMediaUrlGenerator ->expects ($ this -> once ())
124124 ->method ('generate ' )
125125 ->willReturn (['https://localhost/media/123.jpg ' ]);
126126
127127 $ thumbnailUrlTemplate = $ this ->createMock (ThumbnailUrlTemplateInterface::class);
128- $ thumbnailUrlTemplate ->expects (static :: never ())
128+ $ thumbnailUrlTemplate ->expects ($ this -> never ())
129129 ->method ('getUrl ' )
130130 ->willReturn ('https://localhost/media/123.jpg?width=3000 ' );
131131 $ filesystem = $ this ->createMock (PrefixFilesystem::class);
132- $ filesystem ->expects (static :: never ())
132+ $ filesystem ->expects ($ this -> never ())
133133 ->method ('publicUrl ' )
134134 ->willReturn ('https://localhost ' );
135135
@@ -141,7 +141,7 @@ public function testGenerateWithInactiveConfig(): void
141141 'ExtensionsAllowList ' => 'jpg ' ,
142142 'ThumbnailPattern ' => '{mediaUrl}/{mediaPath}?width={width} ' ,
143143 ];
144- $ configReader ->expects (static :: any ())
144+ $ configReader ->expects ($ this -> any ())
145145 ->method ('getConfig ' )
146146 ->willReturnCallback (function ($ key ) use ($ defaultPluginConfig ) {
147147 return $ defaultPluginConfig [$ key ] ?? null ;
@@ -174,16 +174,16 @@ public function testGenerateWithInactiveConfig(): void
174174 public function testGenerateWithNotAllowedExtensionResultsInOriginal (string $ allowList ): void
175175 {
176176 $ decoratedMediaUrlGenerator = $ this ->createMock (AbstractMediaUrlGenerator::class);
177- $ decoratedMediaUrlGenerator ->expects (static :: once ())
177+ $ decoratedMediaUrlGenerator ->expects ($ this -> once ())
178178 ->method ('generate ' )
179179 ->willReturn (['https://localhost/media/123.jpg ' ]);
180180
181181 $ thumbnailUrlTemplate = $ this ->createMock (ThumbnailUrlTemplateInterface::class);
182- $ thumbnailUrlTemplate ->expects (static :: never ())
182+ $ thumbnailUrlTemplate ->expects ($ this -> never ())
183183 ->method ('getUrl ' )
184184 ->willReturn ('https://localhost/media/123.jpg?width=3000 ' );
185185 $ filesystem = $ this ->createMock (PrefixFilesystem::class);
186- $ filesystem ->expects (static :: once ())
186+ $ filesystem ->expects ($ this -> once ())
187187 ->method ('publicUrl ' )
188188 ->willReturn ('https://localhost ' );
189189
@@ -195,7 +195,7 @@ public function testGenerateWithNotAllowedExtensionResultsInOriginal(string $all
195195 'ExtensionsAllowList ' => $ allowList ,
196196 'ThumbnailPattern ' => '{mediaUrl}/{mediaPath}?width={width} ' ,
197197 ];
198- $ configReader ->expects (static :: any ())
198+ $ configReader ->expects ($ this -> any ())
199199 ->method ('getConfig ' )
200200 ->willReturnCallback (function ($ key ) use ($ defaultPluginConfig ) {
201201 return $ defaultPluginConfig [$ key ] ?? null ;
@@ -226,11 +226,11 @@ public function testMultipleGenerationsUseCachedExtensionAllowList(): void
226226 {
227227 $ decoratedMediaUrlGenerator = $ this ->createMock (AbstractMediaUrlGenerator::class);
228228 $ thumbnailUrlTemplate = $ this ->createMock (ThumbnailUrlTemplateInterface::class);
229- $ thumbnailUrlTemplate ->expects (static :: exactly (2 ))
229+ $ thumbnailUrlTemplate ->expects ($ this -> exactly (2 ))
230230 ->method ('getUrl ' )
231231 ->willReturn ('https://localhost/media/123.jpg?width=100 ' );
232232 $ filesystem = $ this ->createMock (PrefixFilesystem::class);
233- $ filesystem ->expects (static :: once ())
233+ $ filesystem ->expects ($ this -> once ())
234234 ->method ('publicUrl ' )
235235 ->willReturn ('https://localhost ' );
236236
@@ -242,7 +242,7 @@ public function testMultipleGenerationsUseCachedExtensionAllowList(): void
242242 'ExtensionsAllowList ' => 'jpg ' ,
243243 'ThumbnailPattern ' => '{mediaUrl}/{mediaPath}?width={width} ' ,
244244 ];
245- $ configReader ->expects (static :: exactly (3 ))
245+ $ configReader ->expects ($ this -> exactly (3 ))
246246 ->method ('getConfig ' )
247247 ->willReturnCallback (function ($ key ) use ($ defaultPluginConfig ) {
248248 return $ defaultPluginConfig [$ key ] ?? null ;
0 commit comments