Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / event-dispatcher / Tests / EventTest.php
index bdc14abbf5a31da39b1763a80cc1803d2524c499..5be2ea09f9d2f8536108f7dda930844a2f83fb46 100644 (file)
@@ -13,7 +13,6 @@ namespace Symfony\Component\EventDispatcher\Tests;
 
 use PHPUnit\Framework\TestCase;
 use Symfony\Component\EventDispatcher\Event;
-use Symfony\Component\EventDispatcher\EventDispatcher;
 
 /**
  * Test class for Event.
@@ -25,11 +24,6 @@ class EventTest extends TestCase
      */
     protected $event;
 
-    /**
-     * @var \Symfony\Component\EventDispatcher\EventDispatcher
-     */
-    protected $dispatcher;
-
     /**
      * Sets up the fixture, for example, opens a network connection.
      * This method is called before a test is executed.
@@ -37,7 +31,6 @@ class EventTest extends TestCase
     protected function setUp()
     {
         $this->event = new Event();
-        $this->dispatcher = new EventDispatcher();
     }
 
     /**
@@ -47,7 +40,6 @@ class EventTest extends TestCase
     protected function tearDown()
     {
         $this->event = null;
-        $this->dispatcher = null;
     }
 
     public function testIsPropagationStopped()
@@ -60,38 +52,4 @@ class EventTest extends TestCase
         $this->event->stopPropagation();
         $this->assertTrue($this->event->isPropagationStopped());
     }
-
-    /**
-     * @group legacy
-     */
-    public function testLegacySetDispatcher()
-    {
-        $this->event->setDispatcher($this->dispatcher);
-        $this->assertSame($this->dispatcher, $this->event->getDispatcher());
-    }
-
-    /**
-     * @group legacy
-     */
-    public function testLegacyGetDispatcher()
-    {
-        $this->assertNull($this->event->getDispatcher());
-    }
-
-    /**
-     * @group legacy
-     */
-    public function testLegacyGetName()
-    {
-        $this->assertNull($this->event->getName());
-    }
-
-    /**
-     * @group legacy
-     */
-    public function testLegacySetName()
-    {
-        $this->event->setName('foo');
-        $this->assertEquals('foo', $this->event->getName());
-    }
 }