Skip to content

Commit 1d57b80

Browse files
fix merge
1 parent 3e54cb7 commit 1d57b80

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -397,33 +397,6 @@ public function testMutatingWhilePropagationIsStopped()
397397

398398
$this->assertTrue($testLoaded);
399399
}
400-
401-
/**
402-
* @group legacy
403-
* @expectedDeprecation Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead.
404-
*/
405-
public function testLegacySignatureWithoutEvent()
406-
{
407-
$this->dispatcher->dispatch('foo');
408-
}
409-
410-
/**
411-
* @group legacy
412-
* @expectedDeprecation Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead.
413-
*/
414-
public function testLegacySignatureWithEvent()
415-
{
416-
$this->dispatcher->dispatch('foo', new Event());
417-
}
418-
419-
/**
420-
* @expectedException \TypeError
421-
* @expectedExceptionMessage Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, string given.
422-
*/
423-
public function testLegacySignatureWithNewEventObject()
424-
{
425-
$this->dispatcher->dispatch('foo', new ContractsEvent());
426-
}
427400
}
428401

429402
class CallableClass

0 commit comments

Comments
 (0)