File tree 1 file changed +11
-5
lines changed
src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,21 @@ public function testRead()
103
103
public function testWrite ()
104
104
{
105
105
$ this ->mock ->expects ($ this ->once ())
106
- ->method ('write ' );
106
+ ->method ('write ' )
107
+ ->willReturn (true )
108
+ ;
107
109
108
- $ this ->proxy ->write ('id ' , 'data ' );
110
+ $ this ->assertTrue ( $ this -> proxy ->write ('id ' , 'data ' ) );
109
111
}
110
112
111
113
public function testDestroy ()
112
114
{
113
115
$ this ->mock ->expects ($ this ->once ())
114
- ->method ('destroy ' );
116
+ ->method ('destroy ' )
117
+ ->willReturn (true )
118
+ ;
115
119
116
- $ this ->proxy ->destroy ('id ' );
120
+ $ this ->assertTrue ( $ this -> proxy ->destroy ('id ' ) );
117
121
}
118
122
119
123
public function testGc ()
@@ -149,7 +153,9 @@ public function testUpdateTimestamp()
149
153
$ proxy ->updateTimestamp ('id ' , 'data ' );
150
154
151
155
$ this ->mock ->expects ($ this ->once ())
152
- ->method ('write ' );
156
+ ->method ('write ' )
157
+ ->willReturn (true )
158
+ ;
153
159
154
160
$ this ->proxy ->updateTimestamp ('id ' , 'data ' );
155
161
}
You can’t perform that action at this time.
0 commit comments