File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed 
Tests/Session/Storage/Handler Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ public function testWrite()
133133                $ this assertInstanceOf (\MongoDB \BSON \UTCDateTime::class, $ data$ this options ['time_field ' ]]);
134134                $ this assertInstanceOf (\MongoDB \BSON \UTCDateTime::class, $ data$ this options ['expiry_field ' ]]);
135135                $ this assertGreaterThanOrEqual ($ expectedExpiryround ((string ) $ data$ this options ['expiry_field ' ]] / 1000 ));
136+ 
137+                 return  $ this createMock (\MongoDB \UpdateResult::class);
136138            });
137139
138140        $ this assertTrue ($ this storage ->write ('foo ' , 'bar ' ));
@@ -153,6 +155,8 @@ public function testReplaceSessionData()
153155            ->method ('updateOne ' )
154156            ->willReturnCallback (function  ($ criteria$ updateData$ optionsuse  (&$ data
155157                $ data$ updateData
158+ 
159+                 return  $ this createMock (\MongoDB \UpdateResult::class);
156160            });
157161
158162        $ this storage ->write ('foo ' , 'bar ' );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments