12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Symfony\Component\EventDispatcher\Tests;
- use PHPUnit\Framework\TestCase;
- use Symfony\Component\EventDispatcher\Event;
- class EventTest extends TestCase
- {
-
- protected $event;
-
- protected function setUp()
- {
- $this->event = new Event();
- }
-
- protected function tearDown()
- {
- $this->event = null;
- }
- public function testIsPropagationStopped()
- {
- $this->assertFalse($this->event->isPropagationStopped());
- }
- public function testStopPropagationAndIsPropagationStopped()
- {
- $this->event->stopPropagation();
- $this->assertTrue($this->event->isPropagationStopped());
- }
- }
|