AbstractEventTest.php 653 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the league/commonmark package.
  5. *
  6. * (c) Colin O'Dell <colinodell@gmail.com>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace League\CommonMark\Tests\Unit\Event;
  12. use PHPUnit\Framework\TestCase;
  13. final class AbstractEventTest extends TestCase
  14. {
  15. public function testStopPropagation(): void
  16. {
  17. $event = new FakeEvent();
  18. $this->assertFalse($event->isPropagationStopped());
  19. $event->stopPropagation();
  20. $this->assertTrue($event->isPropagationStopped());
  21. }
  22. }