summaryrefslogtreecommitdiff
path: root/vendor/symfony/event-dispatcher/Tests/EventTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/event-dispatcher/Tests/EventTest.php')
-rw-r--r--vendor/symfony/event-dispatcher/Tests/EventTest.php45
1 files changed, 2 insertions, 43 deletions
diff --git a/vendor/symfony/event-dispatcher/Tests/EventTest.php b/vendor/symfony/event-dispatcher/Tests/EventTest.php
index 9a822670..5be2ea09 100644
--- a/vendor/symfony/event-dispatcher/Tests/EventTest.php
+++ b/vendor/symfony/event-dispatcher/Tests/EventTest.php
@@ -11,13 +11,13 @@
namespace Symfony\Component\EventDispatcher\Tests;
+use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\Event;
-use Symfony\Component\EventDispatcher\EventDispatcher;
/**
* Test class for Event.
*/
-class EventTest extends \PHPUnit_Framework_TestCase
+class EventTest extends TestCase
{
/**
* @var \Symfony\Component\EventDispatcher\Event
@@ -25,18 +25,12 @@ class EventTest extends \PHPUnit_Framework_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.
*/
protected function setUp()
{
$this->event = new Event();
- $this->dispatcher = new EventDispatcher();
}
/**
@@ -46,7 +40,6 @@ class EventTest extends \PHPUnit_Framework_TestCase
protected function tearDown()
{
$this->event = null;
- $this->dispatcher = null;
}
public function testIsPropagationStopped()
@@ -59,38 +52,4 @@ class EventTest extends \PHPUnit_Framework_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());
- }
}