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

EncodingTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testTranslateCharOnUnknownGlyph() 0 5 1
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