Test Failed
Push — master ( f5fa4d...4d6864 )
by Konrad
02:30
created

PDFObjectTest::testGetTextOnNullPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Smalot\PdfParser\Unit;
6
7
use Smalot\PdfParser\Document;
8
use Smalot\PdfParser\Page;
9
use Smalot\PdfParser\PDFObject;
10
use Tests\Smalot\PdfParser\TestCase;
11
12
class PDFObjectTest extends TestCase
13
{
14
    public function testGetTextOnNullPage(): void
15
    {
16
        static::assertSame(' ', (new PDFObject(new Document()))->getText());
17
    }
18
19
    public function testGetTextOnPageWithoutContent(): void
20
    {
21
        $document = new Document();
22
23
        static::assertSame(' ', (new PDFObject($document, null, null))->getText(new Page($document)));
24
    }
25
}
26