4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\EventDispatcher\Tests;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\EventDispatcher\Event;
18 * Test class for Event.
20 class EventTest extends TestCase
23 * @var \Symfony\Component\EventDispatcher\Event
28 * Sets up the fixture, for example, opens a network connection.
29 * This method is called before a test is executed.
31 protected function setUp()
33 $this->event = new Event();
37 * Tears down the fixture, for example, closes a network connection.
38 * This method is called after a test is executed.
40 protected function tearDown()
45 public function testIsPropagationStopped()
47 $this->assertFalse($this->event->isPropagationStopped());
50 public function testStopPropagationAndIsPropagationStopped()
52 $this->event->stopPropagation();
53 $this->assertTrue($this->event->isPropagationStopped());