@@ -20,7 +20,7 @@ public function testShouldBeSubClassOfEventDispatcher()
2020
2121 public function testShouldSetSyncModeForGivenEventNameOnDispatchAsyncListenersOnly ()
2222 {
23- $ asyncListenerMock = $ this ->createAsyncLisenerMock ();
23+ $ asyncListenerMock = $ this ->createAsyncListenerMock ();
2424 $ asyncListenerMock
2525 ->expects ($ this ->once ())
2626 ->method ('resetSyncMode ' )
@@ -49,7 +49,7 @@ public function testShouldCallAsyncEventButNotOtherOnDispatchAsyncListenersOnly(
4949 });
5050
5151 $ asyncEventWasCalled = false ;
52- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
52+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
5353 $ dispatcher ->addListener ('theEvent ' , function () use (&$ asyncEventWasCalled ) {
5454 $ this ->assertInstanceOf (AsyncEventDispatcher::class, func_get_arg (2 ));
5555
@@ -74,7 +74,7 @@ public function testShouldCallOtherEventIfDispatchedFromAsyncEventOnDispatchAsyn
7474 });
7575
7676 $ asyncEventWasCalled = false ;
77- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
77+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
7878 $ dispatcher ->addListener ('theEvent ' , function () use (&$ asyncEventWasCalled ) {
7979 $ this ->assertInstanceOf (AsyncEventDispatcher::class, func_get_arg (2 ));
8080
@@ -97,7 +97,7 @@ public function testShouldNotCallAsyncEventIfDispatchedFromOtherEventOnDispatchA
9797 func_get_arg (2 )->dispatch ('theOtherAsyncEvent ' );
9898 });
9999
100- $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncLisenerMock ());
100+ $ dispatcher = new AsyncEventDispatcher ($ trueEventDispatcher , $ this ->createAsyncListenerMock ());
101101 $ dispatcher ->addListener ('theAsyncEvent ' , function () {
102102 func_get_arg (2 )->dispatch ('theOtherEvent ' );
103103 });
@@ -115,7 +115,7 @@ public function testShouldNotCallAsyncEventIfDispatchedFromOtherEventOnDispatchA
115115 /**
116116 * @return \PHPUnit_Framework_MockObject_MockObject|AsyncListener
117117 */
118- private function createAsyncLisenerMock ()
118+ private function createAsyncListenerMock ()
119119 {
120120 return $ this ->createMock (AsyncListener::class);
121121 }
0 commit comments