@@ -25,7 +25,7 @@ public function testAddRemoveListener()
25
25
$ dispatcher = new EventDispatcher ();
26
26
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
27
27
28
-
8000
$ tdispatcher ->addListener ('foo ' , $ listener = function () { });
28
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
29
29
$ listeners = $ dispatcher ->getListeners ('foo ' );
30
30
$ this ->assertCount (1 , $ listeners );
31
31
$ this ->assertSame ($ listener , $ listeners [0 ]);
@@ -39,7 +39,7 @@ public function testGetListeners()
39
39
$ dispatcher = new EventDispatcher ();
40
40
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
41
41
42
- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
42
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
43
43
$ this ->assertSame ($ dispatcher ->getListeners ('foo ' ), $ tdispatcher ->getListeners ('foo ' ));
44
44
}
45
45
@@ -51,7 +51,7 @@ public function testHasListeners()
51
51
$ this ->assertFalse ($ dispatcher ->hasListeners ('foo ' ));
52
52
$ this ->assertFalse ($ tdispatcher ->hasListeners ('foo ' ));
53
53
54
- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
54
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
55
55
$ this ->assertTrue ($ dispatcher ->hasListeners ('foo ' ));
56
56
$ this ->assertTrue ($ tdispatcher ->hasListeners ('foo ' ));
57
57
}
@@ -76,7 +76,7 @@ public function testGetCalledListeners()
76
76
{
77
77
$ dispatcher = new EventDispatcher ();
78
78
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch ());
79
- $ tdispatcher ->addListener ('foo ' , $ listener = function () { });
79
+ $ tdispatcher ->addListener ('foo ' , $ listener = function () {});
80
80
81
81
$ this ->assertEquals (array (), $ tdispatcher ->getCalledListeners ());
82
82
$ this ->assertEquals (array ('foo.closure ' => array ('event ' => 'foo ' , 'type ' => 'Closure ' , 'pretty ' => 'closure ' )), $ tdispatcher ->getNotCalledListeners ());
@@ -107,8 +107,8 @@ public function testLogger()
107
107
108
108
$ dispatcher = new EventDispatcher ();
109
109
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
110
- $ tdispatcher ->addListener ('foo ' , $ listener1 = function () { });
111
- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
110
+ $ tdispatcher ->addListener ('foo ' , $ listener1 = function () {});
111
+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {});
112
112
113
113
$ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
114
114
$ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ');
@@ -123,7 +123,7 @@ public function testLoggerWithStoppedEvent()
123
123
$ dispatcher = new EventDispatcher ();
124
124
$ tdispatcher = new TraceableEventDispatcher ($ dispatcher , new Stopwatch (), $ logger );
125
125
$ tdispatcher ->addListener ('foo ' , $ listener1 = function (Event $ event ) { $ event ->stopPropagation (); });
126
- $ tdispatcher ->addListener ('foo ' , $ listener2 = function () { });
126
+ $ tdispatcher ->addListener ('foo ' , $ listener2 = function () {});
127
127
128
128
$ logger ->expects ($ this ->at (0 ))->method ('debug ' )->with ('Notified event "foo" to listener "closure". ' );
129
129
$ logger ->expects ($ this ->at (1 ))->method ('debug ' )->with ('Listener "closure" stopped propagation of the event "foo". ' );
0 commit comments