File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testDispatchDelegates()
43
43
$ this ->innerDispatcher ->expects ($ this ->once ())
44
44
->method ('dispatch ' )
45
45
->with ('event ' , $ event )
46
- ->will ( $ this -> returnValue ( 'result ' ) );
46
+ ->willReturn ( 'result ' );
47
47
48
48
$ this ->assertSame ('result ' , $ this ->dispatcher ->dispatch ('event ' , $ event ));
49
49
}
@@ -53,7 +53,7 @@ public function testGetListenersDelegates()
53
53
$ this ->innerDispatcher ->expects ($ this ->once ())
54
54
->method ('getListeners ' )
55
55
->with ('event ' )
56
- ->will ( $ this -> returnValue ( 'result ' ) );
56
+ ->willReturn ( 'result ' );
57
57
58
58
$ this ->assertSame ('result ' , $ this ->dispatcher ->getListeners ('event ' ));
59
59
}
@@ -63,7 +63,7 @@ public function testHasListenersDelegates()
63
63
$ this ->innerDispatcher ->expects ($ this ->once ())
64
64
->method ('hasListeners ' )
65
65
->with ('event ' )
66
- ->will ( $ this -> returnValue ( 'result ' ) );
66
+ ->willReturn ( 'result ' );
67
67
68
68
$ this ->assertSame ('result ' , $ this ->dispatcher ->hasListeners ('event ' ));
69
69
}
You can’t perform that action at this time.
0 commit comments