File: EnvironmentTest.php

package info (click to toggle)
php-league-html-to-markdown 5.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 448 kB
  • sloc: php: 1,641; makefile: 20; xml: 15; sh: 5
file content (25 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

declare(strict_types=1);

namespace League\HTMLToMarkdown\Test;

use League\HTMLToMarkdown\Environment;
use PHPUnit\Framework\TestCase;

class EnvironmentTest extends TestCase
{
    public function testCreation(): void
    {
        $environment = Environment::createDefaultEnvironment();

        $this->assertInstanceOf(
            'League\HTMLToMarkdown\Converter\HeaderConverter',
            $environment->getConverterByTag('h3')
        );
        $this->assertInstanceOf(
            'League\HTMLToMarkdown\Converter\ImageConverter',
            $environment->getConverterByTag('img')
        );
    }
}