From 1d57b800aabdbe1ae23f9e358bf2395ac24578dc Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 27 Jun 2019 21:25:51 +0200 Subject: [PATCH] fix merge --- .../Tests/EventDispatcherTest.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php index 5a4e6573ac..c71c3f59f8 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php @@ -397,33 +397,6 @@ class EventDispatcherTest extends TestCase $this->assertTrue($testLoaded); } - - /** - * @group legacy - * @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. - */ - public function testLegacySignatureWithoutEvent() - { - $this->dispatcher->dispatch('foo'); - } - - /** - * @group legacy - * @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. - */ - public function testLegacySignatureWithEvent() - { - $this->dispatcher->dispatch('foo', new Event()); - } - - /** - * @expectedException \TypeError - * @expectedExceptionMessage Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, string given. - */ - public function testLegacySignatureWithNewEventObject() - { - $this->dispatcher->dispatch('foo', new ContractsEvent()); - } } class CallableClass