@@ -283,7 +283,7 @@ public function testGetEntriesAsync()
283
283
public function testCacheMissDoesFetch ()
284
284
{
285
285
$ handlerOption = $ this ->getSuccessHandlerOption ($ this ->getEntriesData (), '235345lj34h53j4h ' );
286
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
286
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
287
287
$ cachePool = $ this ->getMockCachePool ();
288
288
$ cacheItem = $ this ->getMockCacheItem ();
289
289
$ cachePool
@@ -306,7 +306,7 @@ public function testCacheMissDoesFetch()
306
306
public function testCacheHitUsesCacheAndDoesNotFetch ()
307
307
{
308
308
$ handlerOption = $ this ->getExplodyHandlerOption ();
309
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
309
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
310
310
$ cachePool = $ this ->getMockCachePool ();
311
311
$ cacheItem = $ this ->getMockCacheItem ();
312
312
$ cachePool
@@ -332,7 +332,7 @@ public function testCacheHitUsesCacheAndDoesNotFetch()
332
332
public function testUsesFallbackCacheOnRequestFailure ()
333
333
{
334
334
$ handlerOption = $ this ->getExplodyHandlerOption ();
335
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
335
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
336
336
$ frontCacheItem = $ this ->getMockCacheItem ();
337
337
$ frontCachePool = $ this ->getMockCachePool ();
338
338
$ frontCachePool
@@ -366,7 +366,7 @@ public function testUsesFallbackCacheOnRequestFailure()
366
366
public function testThrowsResourceUnavailableExceptionIfFailResponseCachedInFallbackCache ()
367
367
{
368
368
$ handlerOption = $ this ->getExplodyHandlerOption ();
369
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
369
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
370
370
$ frontCacheItem = $ this ->getMockCacheItem ();
371
371
$ frontCachePool = $ this ->getMockCachePool ();
372
372
$ frontCachePool
@@ -398,7 +398,7 @@ public function testThrowsResourceUnavailableExceptionIfFailResponseCachedInFall
398
398
public function testFailResponseDoesNotSaveIntoFallbackCacheEvenIfCachingFailResponses ()
399
399
{
400
400
$ handlerOption = $ this ->getExplodyHandlerOption ();
401
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
401
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
402
402
$ frontCacheItem = $ this ->getMockCacheItem ();
403
403
$ frontCachePool = $ this ->getMockCachePool ();
404
404
$ frontCachePool
@@ -424,7 +424,7 @@ public function testFailResponseDoesNotSaveIntoFallbackCacheEvenIfCachingFailRes
424
424
public function testUsesFallbackCacheOnRequestSuccessfulButInvalid ()
425
425
{
426
426
$ handlerOption = $ this ->getSuccessHandlerOption ($ this ->getEmptyEntriesData (), '235345lj34h53j4h ' );
427
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
427
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
428
428
$ frontCacheItem = $ this ->getMockCacheItem ();
429
429
$ frontCachePool = $ this ->getMockCachePool ();
430
430
$ frontCachePool
@@ -466,7 +466,7 @@ public function testUsesFallbackCacheOnRequestSuccessfulButInvalid()
466
466
public function testInvalidResponseDoesNotSaveIntoFallbackCacheEvenIfCachingFailResponses ()
467
467
{
468
468
$ handlerOption = $ this ->getSuccessHandlerOption ($ this ->getEmptyEntriesData (), '235345lj34h53j4h ' );
469
- $ expectedCacheKey = 'jskdfjhsdfk-entries-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
469
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
470
470
$ frontCacheItem = $ this ->getMockCacheItem ();
471
471
$ frontCachePool = $ this ->getMockCachePool ();
472
472
$ frontCachePool
@@ -543,7 +543,7 @@ public function testQueryIsLoggedIfLoggerTrue()
543
543
public function testUsePreviewApiForCachedGetEntriesCall ()
544
544
{
545
545
$ handlerOption = $ this ->getExplodyHandlerOption ();
546
- $ expectedCacheKey = 'jskdfjhsdfk-entries-preview-( equal) fields.old:6,( less_than) fields.ghosts[lt]: 6 ' ;
546
+ $ expectedCacheKey = 'jskdfjhsdfk-entries-preview-| equal| fields.old↦6,| less_than| fields.ghosts[lt]↦ 6 ' ;
547
547
$ cachePool = $ this ->getMockCachePool ();
548
548
$ cacheItem = $ this ->getMockCacheItem ();
549
549
$ cachePool
@@ -562,8 +562,8 @@ public function testUsePreviewApiForCachedGetEntriesCall()
562
562
$ parameters = [new LessThanFilter (new FieldProperty ('ghosts ' ), 6 ), new EqualFilter (new FieldProperty ('old ' ), 6 )];
563
563
$ entries = $ contentful ->getEntries ($ parameters );
564
564
$ entry = array_values (iterator_to_array ($ entries ))[0 ];
565
- $ this ->assertInstanceOf (' Markup\Contentful\ EntryInterface' , $ entry );
566
- $ this ->assertInstanceOf (' Markup\Contentful\ EntryInterface' , $ entry ['bestFriend ' ]);
565
+ $ this ->assertInstanceOf (EntryInterface::class , $ entry );
566
+ $ this ->assertInstanceOf (EntryInterface::class , $ entry ['bestFriend ' ]);
567
567
}
568
568
569
569
public function testGetContentTypes ()
@@ -620,7 +620,7 @@ public function testGetContentTypeByNameAsync()
620
620
621
621
public function testGetNonExistentResourceWhenCachedThrowsWithoutRequest ()
622
622
{
623
- $ expectedCacheKey = 'jskdfjhsdfk-entry: cat ' ;
623
+ $ expectedCacheKey = 'jskdfjhsdfk-entry↦ cat ' ;
624
624
$ cachePool = $ this ->getMockCachePool ();
625
625
$ cacheItem = $ this ->getMockCacheItem ();
626
626
$ cachePool
0 commit comments