@@ -104,7 +104,7 @@ public function testShouldDispatchBothAsyncEventAndSyncOne()
104
104
echo "Async event \n" ;
105
105
});
106
106
107
- $ this ->dispatch ($ this ->dispatcher , new GenericEvent (),'test_async ' );
107
+ $ this ->dispatch ($ this ->dispatcher , new GenericEvent (), 'test_async ' );
108
108
$ this ->processMessages ();
109
109
110
110
$ this ->expectOutputString ("Sync event \nSend message for event: test_async \nAsync event \n" );
@@ -115,7 +115,7 @@ public function testShouldDispatchBothAsyncEventAndSyncOneFromWhenDispatchedFrom
115
115
$ this ->dispatcher ->addListener ('foo ' , function ($ event , $ name , EventDispatcherInterface $ dispatcher ) {
116
116
echo "Foo event \n" ;
117
117
118
- $ this ->dispatch ($ dispatcher , new GenericEvent (),'test_async ' );
118
+ $ this ->dispatch ($ dispatcher , new GenericEvent (), 'test_async ' );
119
119
});
120
120
121
121
$ this ->dispatcher ->addListener ('test_async ' , function () {
@@ -128,7 +128,7 @@ public function testShouldDispatchBothAsyncEventAndSyncOneFromWhenDispatchedFrom
128
128
echo "Async event \n" ;
129
129
});
130
130
131
- $ this ->dispatch ($ this ->dispatcher , new GenericEvent (),'foo ' );
131
+ $ this ->dispatch ($ this ->dispatcher , new GenericEvent (), 'foo ' );
132
132
133
133
$ this ->processMessages ();
134
134
@@ -143,14 +143,14 @@ public function testShouldDispatchOtherAsyncEventFromAsyncEvent()
143
143
$ this ->asyncDispatcher ->addListener ('test_async ' , function ($ event , $ eventName , EventDispatcherInterface $ dispatcher ) {
144
144
echo "Async event \n" ;
145
145
146
- $ this ->dispatch ($ dispatcher , new GenericEvent (),'test_async_from_async ' );
146
+ $ this ->dispatch ($ dispatcher , new GenericEvent (), 'test_async_from_async ' );
147
147
});
148
148
149
149
$ this ->dispatcher ->addListener ('test_async_from_async ' , function ($ event , $ eventName , EventDispatcherInterface $ dispatcher ) {
150
150
echo "Async event from event \n" ;
151
151
});
152
152
153
- $ this ->dispatch ($ this ->dispatcher , new GenericEvent (),'test_async ' );
153
+ $ this ->dispatch ($ this ->dispatcher , new GenericEvent (), 'test_async ' );
154
154
155
155
$ this ->processMessages ();
156
156
$ this ->processMessages ();
@@ -169,10 +169,10 @@ public function testShouldDispatchSyncListenerIfDispatchedFromAsycListner()
169
169
$ this ->asyncDispatcher ->addListener ('test_async ' , function ($ event , $ eventName , EventDispatcherInterface $ dispatcher ) {
170
170
echo "Async event \n" ;
171
171
172
- $ this ->dispatch ($ dispatcher , new GenericEvent (),'sync ' );
172
+ $ this ->dispatch ($ dispatcher , new GenericEvent (), 'sync ' );
173
173
});
174
174
175
- $ this ->dispatch ($ this ->dispatcher , new GenericEvent (),'test_async ' );
175
+ $ this ->dispatch ($ this ->dispatcher , new GenericEvent (), 'test_async ' );
176
176
177
177
$ this ->processMessages ();
178
178
0 commit comments