File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ We are now ready to write our first test::
114
114
$matcher
115
115
->expects($this->once())
116
116
->method('getContext')
117
- ->will ($this->returnValue($this-> createMock(Routing\RequestContext::class) ))
117
+ ->willReturn ($this->createMock(Routing\RequestContext::class))
118
118
;
119
119
$controllerResolver = $this->createMock(ControllerResolverInterface::class);
120
120
$argumentResolver = $this->createMock(ArgumentResolverInterface::class);
@@ -169,16 +169,16 @@ Response::
169
169
$matcher
170
170
->expects($this->once())
171
171
->method('match')
172
- ->will($this->returnValue ([
172
+ ->willReturn ([
173
173
'_route' => 'is_leap_year/{year}',
174
174
'year' => '2000',
175
175
'_controller' => [new LeapYearController(), 'index'],
176
- ]))
176
+ ])
177
177
;
178
178
$matcher
179
179
->expects($this->once())
180
180
->method('getContext')
181
- ->will ($this->returnValue($this-> createMock(Routing\RequestContext::class) ))
181
+ ->willReturn ($this->createMock(Routing\RequestContext::class))
182
182
;
183
183
$controllerResolver = new ControllerResolver();
184
184
$argumentResolver = new ArgumentResolver();
You can’t perform that action at this time.
0 commit comments