Passed
Pull Request — master (#459)
by
unknown
08:31
created

EncodingTest::testTranslateCharOnUnknownGlyph()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Tests\Smalot\PdfParser\Unit;
5
6
use Smalot\PdfParser\Document;
7
use Smalot\PdfParser\Encoding;
8
use Tests\Smalot\PdfParser\TestCase;
9
10
/**
11
 * @coversDefaultClass \Smalot\PdfParser\Encoding
12
 */
13
class EncodingTest extends TestCase
14
{
15
    /**
16
     * @covers ::translateChar
17
     */
18
    public function testTranslateCharOnUnknownGlyph(): void
19
    {
20
        $encoding = new Encoding(new Document());
21
22
        static::assertNull($encoding->translateChar('foo'));
23
    }
24
}
25