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

PDFObjectTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

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