@@ -250,12 +250,12 @@ private static function assertEqualDateWithDelta(string $expect, string $actual,
250
250
251
251
/**
252
252
* @return array<string, array{
253
- * cache_expire : int,
254
- * cache_limiter : string,
255
- * expected_expires : string,
256
- * expected_last_modified : string,
257
- * expected_cache_control : string,
258
- * expected_pragma : string,
253
+ * cacheExpire : int,
254
+ * cacheLimiter : string,
255
+ * expectedExpires : string,
256
+ * expectedLastModified : string,
257
+ * expectedCacheControl : string,
258
+ * expectedPragma : string,
259
259
* }>
260
260
*/
261
261
public static function provideCacheLimiterValues (): array
@@ -266,44 +266,44 @@ public static function provideCacheLimiterValues(): array
266
266
267
267
return [
268
268
'empty ' => [
269
- 'cache_expire ' => $ cacheExpire ,
270
- 'cache_limiter ' => '' ,
271
- 'expected_expires ' => '' ,
272
- 'expected_last_modified ' => '' ,
273
- 'expected_cache_control ' => '' ,
274
- 'expected_pragma ' => '' ,
269
+ 'cacheExpire ' => $ cacheExpire ,
270
+ 'cacheLimiter ' => '' ,
271
+ 'expectedExpires ' => '' ,
272
+ 'expectedLastModified ' => '' ,
273
+ 'expectedCacheControl ' => '' ,
274
+ 'expectedPragma ' => '' ,
275
275
],
276
276
'not-valid ' => [
277
- 'cache_expire ' => $ cacheExpire ,
278
- 'cache_limiter ' => 'not-valid ' ,
279
- 'expected_expires ' => '' ,
280
- 'expected_last_modified ' => '' ,
281
- 'expected_cache_control ' => '' ,
282
- 'expected_pragma ' => '' ,
277
+ 'cacheExpire ' => $ cacheExpire ,
278
+ 'cacheLimiter ' => 'not-valid ' ,
279
+ 'expectedExpires ' => '' ,
280
+ 'expectedLastModified ' => '' ,
281
+ 'expectedCacheControl ' => '' ,
282
+ 'expectedPragma ' => '' ,
283
283
],
284
284
'nocache ' => [
285
- 'cache_expire ' => $ cacheExpire ,
286
- 'cache_limiter ' => 'nocache ' ,
287
- 'expected_expires ' => Http::CACHE_PAST_DATE ,
288
- 'expected_last_modified ' => '' ,
289
- 'expected_cache_control ' => 'no-store, no-cache, must-revalidate ' ,
290
- 'expected_pragma ' => 'no-cache ' ,
285
+ 'cacheExpire ' => $ cacheExpire ,
286
+ 'cacheLimiter ' => 'nocache ' ,
287
+ 'expectedExpires ' => Http::CACHE_PAST_DATE ,
288
+ 'expectedLastModified ' => '' ,
289
+ 'expectedCacheControl ' => 'no-store, no-cache, must-revalidate ' ,
290
+ 'expectedPragma ' => 'no-cache ' ,
291
291
],
292
292
'public ' => [
293
- 'cache_expire ' => $ cacheExpire ,
294
- 'cache_limiter ' => 'public ' ,
295
- 'expected_expires ' => gmdate (Http::DATE_FORMAT , time () + (60 * $ cacheExpire )),
296
- 'expected_last_modified ' => (string ) $ lastModified ,
297
- 'expected_cache_control ' => 'public, max-age= ' . $ maxAge ,
298
- 'expected_pragma ' => '' ,
293
+ 'cacheExpire ' => $ cacheExpire ,
294
+ 'cacheLimiter ' => 'public ' ,
295
+ 'expectedExpires ' => gmdate (Http::DATE_FORMAT , time () + (60 * $ cacheExpire )),
296
+ 'expectedLastModified ' => (string ) $ lastModified ,
297
+ 'expectedCacheControl ' => 'public, max-age= ' . $ maxAge ,
298
+ 'expectedPragma ' => '' ,
299
299
],
300
300
'private ' => [
301
- 'cache_expire ' => $ cacheExpire ,
302
- 'cache_limiter ' => 'private ' ,
303
- 'expected_expires ' => Http::CACHE_PAST_DATE ,
304
- 'expected_last_modified ' => (string ) $ lastModified ,
305
- 'expected_cache_control ' => 'private, max-age= ' . $ maxAge ,
306
- 'expected_pragma ' => '' ,
301
+ 'cacheExpire ' => $ cacheExpire ,
302
+ 'cacheLimiter ' => 'private ' ,
303
+ 'expectedExpires ' => Http::CACHE_PAST_DATE ,
304
+ 'expectedLastModified ' => (string ) $ lastModified ,
305
+ 'expectedCacheControl ' => 'private, max-age= ' . $ maxAge ,
306
+ 'expectedPragma ' => '' ,
307
307
],
308
308
];
309
309
}
0 commit comments