File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function testScopeShortCircuitGet() {
6464 public function testScopeShortCircuitGetMultiple () {
6565 $ scope = 'scope ' ;
6666 $ mockBackend = $ this ->getMockBuilder (Matryoshka \Ephemeral::class)
67- ->setMethods (['get ' ])
67+ ->setMethods (['get ' , ' getMultiple ' ])
6868 ->getMock ();
6969
7070 // Assert get() is called only once because a missing scope value means
@@ -73,6 +73,11 @@ public function testScopeShortCircuitGetMultiple() {
7373 ->method ('get ' )
7474 ->with ($ this ->stringContains ($ scope ))
7575 ->willReturn (Matryoshka \Backend::MISS );
76+ // Assert getMultiple() is never called because a missi
77+ // we don't need to check individual keys.
78+ $ mockBackend ->expects ($ this ->never ())
79+ ->method ('getMultiple ' );
80+
7681 $ scopedCache = new Matryoshka \Scope ($ mockBackend , $ scope );
7782
7883 $ key = (string )rand (1 , 100000 );
You can’t perform that action at this time.
0 commit comments