8000 fix test name · symfony/symfony@9bcea2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bcea2e

Browse files
author
Robin Chalas
committed
fix test name
1 parent 5d0fa55 commit 9bcea2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testDispatch()
132132
{
133133
$this->dispatcher->addListener('pre.foo', [$this->listener, 'preFoo']);
134134
$this->dispatcher->addListener('post.foo', [$this->listener, 'postFoo']);
135-
$this->dispatcher->dispatch(new ContractsEvent(), self::preFoo);
135+
$this->dispatcher->dispatch(new Event(), self::preFoo);
136136
$this->assertTrue($this->listener->preFooInvoked);
137137
$this->assertFalse($this->listener->postFooInvoked);
138138
$this->assertInstanceOf('Symfony\Component\EventDispatcher\Event', $this->dispatcher->dispatch(new Event(), 'noevent'));
@@ -146,7 +146,7 @@ public function testDispatchContractsEvent()
146146
{
147147
$this->dispatcher->addListener('pre.foo', [$this->listener, 'preFoo']);
148148
$this->dispatcher->addListener('post.foo', [$this->listener, 'postFoo']);
149-
$this->dispatcher->dispatch(new Event(), self::preFoo);
149+
$this->dispatcher->dispatch(new ContractsEvent(), self::preFoo);
150150
$this->assertTrue($this->listener->preFooInvoked);
151151
$this->assertFalse($this->listener->postFooInvoked);
152152
$this->assertInstanceOf('Symfony\Component\EventDispatcher\Event', $this->dispatcher->dispatch(new Event(), 'noevent'));

0 commit comments

Comments
 (0)
0