88use ScriptFUSION \Porter \Cache \InvalidArgumentException ;
99use ScriptFUSION \Porter \Cache \MemoryCache ;
1010
11+ /**
12+ * @see MemoryCache
13+ */
1114final class MemoryCacheTest extends TestCase
1215{
1316 private MemoryCache $ cache ;
@@ -50,21 +53,21 @@ public function testHasItem(): void
5053
5154 public function testClear (): void
5255 {
53- $ this ->cache ->clear ();
56+ self :: assertTrue ( $ this ->cache ->clear () );
5457
5558 self ::assertEmpty ($ this ->cache ->getArrayCopy ());
5659 }
5760
5861 public function testDeleteItem (): void
5962 {
60- $ this ->cache ->deleteItem ('foo ' );
63+ self :: assertTrue ( $ this ->cache ->deleteItem ('foo ' ) );
6164
6265 self ::assertFalse ($ this ->cache ->hasItem ('foo ' ));
6366 }
6467
6568 public function testDeleteItems (): void
6669 {
67- $ this ->cache ->deleteItems (['foo ' ]);
70+ self :: assertTrue ( $ this ->cache ->deleteItems (['foo ' ]) );
6871
6972 self ::assertEmpty ($ this ->cache ->getArrayCopy ());
7073 }
@@ -78,14 +81,14 @@ public function testDeleteInvalidItem(): void
7881
7982 public function testSave (): void
8083 {
81- $ this ->cache ->save ($ this ->cache ->getItem ('bar ' )->set ('baz ' ));
84+ self :: assertTrue ( $ this ->cache ->save ($ this ->cache ->getItem ('bar ' )->set ('baz ' ) ));
8285
8386 self ::assertSame ('baz ' , $ this ->cache ->getItem ('bar ' )->get ());
8487 }
8588
8689 public function testSaveDeferred (): void
8790 {
88- $ this ->cache ->saveDeferred ($ this ->cache ->getItem ('bar ' )->set ('baz ' ));
91+ self :: assertTrue ( $ this ->cache ->saveDeferred ($ this ->cache ->getItem ('bar ' )->set ('baz ' ) ));
8992
9093 self ::assertSame ('baz ' , $ this ->cache ->getItem ('bar ' )->get ());
9194 }
0 commit comments