@@ -132,7 +132,7 @@ public function testDispatch()
132
132
{
133
133
$ this ->dispatcher ->addListener ('pre.foo ' , [$ this ->listener , 'preFoo ' ]);
134
134
$ this ->dispatcher ->addListener ('post.foo ' , [$ this ->listener , 'postFoo ' ]);
135
- $ this ->dispatcher ->dispatch (new ContractsEvent (), self ::preFoo);
135
+ $ this ->dispatcher ->dispatch (new Event (), self ::preFoo);
136
136
$ this ->assertTrue ($ this ->listener ->preFooInvoked );
137
137
$ this ->assertFalse ($ this ->listener ->postFooInvoked );
138
138
$ this ->assertInstanceOf ('Symfony\Component\EventDispatcher\Event ' , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
@@ -146,7 +146,7 @@ public function testDispatchContractsEvent()
146
146
{
147
147
$ this ->dispatcher ->addListener ('pre.foo ' , [$ this ->listener , 'preFoo ' ]);
148
148
$ this ->dispatcher ->addListener ('post.foo ' , [$ this ->listener , 'postFoo ' ]);
149
- $ this ->dispatcher ->dispatch (new Event (), self ::preFoo);
149
+ $ this ->dispatcher ->dispatch (new ContractsEvent (), self ::preFoo);
150
150
$ this ->assertTrue ($ this ->listener ->preFooInvoked );
151
151
$ this ->assertFalse ($ this ->listener ->postFooInvoked );
152
152
$ this ->assertInstanceOf ('Symfony\Component\EventDispatcher\Event ' , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
0 commit comments