FootnoteSpecTest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the league/commonmark package.
  4. *
  5. * (c) Colin O'Dell <colinodell@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace League\CommonMark\Tests\Functional\Extension\Footnote;
  12. use League\CommonMark\Environment\Environment;
  13. use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
  14. use League\CommonMark\Extension\Footnote\FootnoteExtension;
  15. use League\CommonMark\MarkdownConverter;
  16. use League\CommonMark\Tests\Functional\AbstractSpecTest;
  17. final class FootnoteSpecTest extends AbstractSpecTest
  18. {
  19. protected function setUp(): void
  20. {
  21. $environment = new Environment();
  22. $environment->addExtension(new CommonMarkCoreExtension());
  23. $environment->addExtension(new FootnoteExtension());
  24. $this->converter = new MarkdownConverter($environment);
  25. }
  26. protected function getFileName(): string
  27. {
  28. return __DIR__ . '/spec.txt';
  29. }
  30. }