File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ public function testSaveExpired()
344
344
$ item = $ this ->cache ->getItem ('key ' );
345
345
$ item ->set ('value ' );
346
346
$ item ->expiresAt (\DateTime::createFromFormat ('U ' , time ()));
347
- $ this ->assertFalse ( $ this -> cache ->save ($ item), ' Cache should not save expired items ' );
347
+ $ this ->cache ->save ($ item );
348
348
$ item = $ this ->cache ->getItem ('key ' );
349
349
$ this ->assertFalse ($ item ->isHit (), 'Cache should not save expired items ' );
350
350
}
@@ -409,7 +409,7 @@ public function testDeferredExpired()
409
409
$ item = $ this ->cache ->getItem ('key ' );
410
410
$ item ->set ('4711 ' );
411
411
$ item ->expiresAt (\DateTime::createFromFormat ('U ' , time ()));
412
- $ this ->assertFalse ( $ this -> cache ->saveDeferred ($ item) );
412
+ $ this ->cache ->saveDeferred ($ item );
413
413
414
414
$ this ->assertFalse ($ this ->cache ->hasItem ('key ' ), 'Cache should not have expired deferred item ' );
415
415
$ this ->cache ->commit ();
@@ -491,7 +491,7 @@ public function testExpiration()
491
491
$ item ->expiresAfter (2 );
492
492
$ this ->cache ->save ($ item );
493
493
494
- sleep (2 );
494
+ sleep (3 );
495
495
$ item = $ this ->cache ->getItem ('key ' );
496
496
$ this ->assertFalse ($ item ->isHit ());
497
497
$ this ->assertNull ($ item ->get (), "Item's value must be null when isHit() is false. " );
You can’t perform that action at this time.
0 commit comments