@@ -20,7 +20,7 @@ public function testShouldBeSubClassOfEventDispatcher()
20
20
21
21
public function testShouldSetSyncModeForGivenEventNameOnDispatchAsyncListenersOnly ()
22
22
{
23
- $ asyncListenerMock = $ this ->createAsyncLisenerMock ();
23
+ $ asyncListenerMock = $ this ->createAsyncListenerMock ();
24
24
$ asyncListenerMock
25
25
->expects ($ this ->once ())
26
26
->method ('resetSyncMode ' )
@@ -49,7 +49,7 @@ public function testShouldCallAsyncEventButNotOtherOnDispatchAsyncListenersOnly(
49
49
});
50
50
51
51
$ asyncEventWasCalled = false ;
52
- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
52
+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
53
53
$ dispatcher ->addListener ('theEvent ' , function () use (&$ asyncEventWasCalled ) {
54
54
$ this ->assertInstanceOf (AsyncEventDispatcher::class, func_get_arg (2 ));
55
55
@@ -74,7 +74,7 @@ public function testShouldCallOtherEventIfDispatchedFromAsyncEventOnDispatchAsyn
74
74
});
75
75
76
76
$ asyncEventWasCalled = false ;
77
- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
77
+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
78
78
$ dispatcher ->addListener ('theEvent ' , function () use (&$ asyncEventWasCalled ) {
79
79
$ this ->assertInstanceOf (AsyncEventDispatcher::class, func_get_arg (2 ));
80
80
@@ -97,7 +97,7 @@ public function testShouldNotCallAsyncEventIfDispatchedFromOtherEventOnDispatchA
97
97
func_get_arg (2 )->dispatch ('theOtherAsyncEvent ' );
98
98
});
99
99
100
- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
100
+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
101
101
$ dispatcher ->addListener ('theAsyncEvent ' , function () {
102
102
func_get_arg (2 )->dispatch ('theOtherEvent ' );
103
103
});
@@ -115,7 +115,7 @@ public function testShouldNotCallAsyncEventIfDispatchedFromOtherEventOnDispatchA
115
115
/**
116
116
* @return \PHPUnit_Framework_MockObject_MockObject|AsyncListener
117
117
*/
118
- private function createAsyncLisenerMock ()
118
+ private function createAsyncListenerMock ()
119
119
{
120
120
return $ this ->createMock (AsyncListener::class);
121
121
}
0 commit comments