File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ public function testSaveExpired()
344344 $ item = $ this ->cache ->getItem ('key ' );
345345 $ item ->set ('value ' );
346346 $ item ->expiresAt (\DateTime::createFromFormat ('U ' , time ()));
347- $ this ->assertFalse ( $ this -> cache ->save ($ item), ' Cache should not save expired items ' );
347+ $ this ->cache ->save ($ item );
348348 $ item = $ this ->cache ->getItem ('key ' );
349349 $ this ->assertFalse ($ item ->isHit (), 'Cache should not save expired items ' );
350350 }
@@ -409,7 +409,7 @@ public function testDeferredExpired()
409409 $ item = $ this ->cache ->getItem ('key ' );
410410 $ item ->set ('4711 ' );
411411 $ item ->expiresAt (\DateTime::createFromFormat ('U ' , time ()));
412- $ this ->assertFalse ( $ this -> cache ->saveDeferred ($ item) );
412+ $ this ->cache ->saveDeferred ($ item );
413413
414414 $ this ->assertFalse ($ this ->cache ->hasItem ('key ' ), 'Cache should not have expired deferred item ' );
415415 $ this ->cache ->commit ();
@@ -491,7 +491,7 @@ public function testExpiration()
491491 $ item ->expiresAfter (2 );
492492 $ this ->cache ->save ($ item );
493493
494- sleep (2 );
494+ sleep (3 );
495495 $ item = $ this ->cache ->getItem ('key ' );
496496 $ this ->assertFalse ($ item ->isHit ());
497497 $ 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