Skip to content

Commit a8d179b

Browse files
committed
fixed CS
1 parent 0a56a37 commit a8d179b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,35 +155,26 @@ public function testGetCalledListenersNested()
155155

156156
public function testItReturnsNoOrphanedEventsWhenCreated()
157157
{
158-
// GIVEN
159158
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
160-
// WHEN
161159
$events = $tdispatcher->getOrphanedEvents();
162-
// THEN
163160
$this->assertEmpty($events);
164161
}
165162

166163
public function testItReturnsOrphanedEventsAfterDispatch()
167164
{
168-
// GIVEN
169165
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
170166
$tdispatcher->dispatch('foo');
171-
// WHEN
172167
$events = $tdispatcher->getOrphanedEvents();
173-
// THEN
174168
$this->assertCount(1, $events);
175169
$this->assertEquals(array('foo'), $events);
176170
}
177171

178172
public function testItDoesNotReturnHandledEvents()
179173
{
180-
// GIVEN
181174
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
182175
$tdispatcher->addListener('foo', function () {});
183176
$tdispatcher->dispatch('foo');
184-
// WHEN
185177
$events = $tdispatcher->getOrphanedEvents();
186-
// THEN
187178
$this->assertEmpty($events);
188179
}
189180

0 commit comments

Comments
 (0)