StrikethroughTest.php 957 B

12345678910111213141516171819202122232425262728293031323334
  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\Extension\Strikethrough;
  12. use League\CommonMark\Extension\Strikethrough\Strikethrough;
  13. use PHPUnit\Framework\TestCase;
  14. final class StrikethroughTest extends TestCase
  15. {
  16. public function testEmptyConstructor(): void
  17. {
  18. $emphasis = new Strikethrough();
  19. $this->assertSame('~~', $emphasis->getOpeningDelimiter());
  20. $this->assertSame('~~', $emphasis->getClosingDelimiter());
  21. }
  22. public function testConstructor(): void
  23. {
  24. $emphasis = new Strikethrough('~~~');
  25. $this->assertSame('~~~', $emphasis->getOpeningDelimiter());
  26. $this->assertSame('~~~', $emphasis->getClosingDelimiter());
  27. }
  28. }