FakeInjectableInlineParser.php 980 B

1234567891011121314151617181920212223242526272829303132333435
  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\Environment;
  12. use League\CommonMark\Environment\EnvironmentAwareInterface;
  13. use League\CommonMark\Parser\Inline\InlineParserInterface;
  14. use League\CommonMark\Parser\Inline\InlineParserMatch;
  15. use League\CommonMark\Parser\InlineParserContext;
  16. use League\Config\ConfigurationAwareInterface;
  17. final class FakeInjectableInlineParser implements InlineParserInterface, ConfigurationAwareInterface, EnvironmentAwareInterface
  18. {
  19. use FakeInjectableTrait;
  20. public function getMatchDefinition(): InlineParserMatch
  21. {
  22. return InlineParserMatch::oneOf('');
  23. }
  24. public function parse(InlineParserContext $inlineContext): bool
  25. {
  26. return false;
  27. }
  28. }