@@ -130,6 +130,7 @@ public function testWriteEmptyNewSession()
130
130
$ handler ->expects ($ this ->never ())->method ('write ' );
131
131
$ handler ->expects ($ this ->once ())->method ('destroy ' )->willReturn (true );
132
132
$ proxy = new StrictSessionHandler ($ handler );
133
+ $ proxy ->open ('path ' , 'name ' );
133
134
134
135
$ this ->assertFalse ($ proxy ->validateId ('id ' ));
135
136
$ this ->assertSame ('' , $ proxy ->read ('id ' ));
@@ -144,6 +145,7 @@ public function testWriteEmptyExistingSession()
144
145
$ handler ->expects ($ this ->never ())->method ('write ' );
145
146
$ handler ->expects ($ this ->once ())->method ('destroy ' )->willReturn (true );
146
147
$ proxy = new StrictSessionHandler ($ handler );
148
+ $ proxy ->open ('path ' , 'name ' );
147
149
148
150
$ this ->assertSame ('data ' , $ proxy ->read ('id ' ));
149
151
$ this ->assertTrue ($ proxy ->write ('id ' , '' ));
@@ -155,6 +157,7 @@ public function testDestroy()
155
157
$ handler ->expects ($ this ->once ())->method ('destroy ' )
156
158
->with ('id ' )->willReturn (true );
157
159
$ proxy = new StrictSessionHandler ($ handler );
160
+ $ proxy ->open ('path ' , 'name ' );
158
161
159
162
$ this ->assertTrue ($ proxy ->destroy ('id ' ));
160
163
}
@@ -166,6 +169,7 @@ public function testDestroyNewSession()
166
169
->with ('id ' )->willReturn ('' );
167
170
$ handler ->expects ($ this ->once ())->method ('destroy ' )->willReturn (true );
168
171
$ proxy = new StrictSessionHandler ($ handler );
172
+ $ proxy ->open ('path ' , 'name ' );
169
173
170
174
$ this ->assertSame ('' , $ proxy ->read ('id ' ));
171
175
$ this ->assertTrue ($ proxy ->destroy ('id ' ));
@@ -181,6 +185,7 @@ public function testDestroyNonEmptyNewSession()
181
185
$ handler ->expects ($ this ->once ())->method ('destroy ' )
182
186
->with ('id ' )->willReturn (true );
183
187
$ proxy = new StrictSessionHandler ($ handler );
188
+ $ proxy ->open ('path ' , 'name ' );
184
189
185
190
$ this ->assertSame ('' , $ proxy ->read ('id ' ));
186
191
$ this ->assertTrue ($ proxy ->write ('id ' , 'data ' ));
0 commit comments