Test Failed
Pull Request — master (#466)
by
unknown
03:02
created

PDFObjectTest::testGetTextOnPageWithoutContent()   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\Page;
8
use Smalot\PdfParser\PDFObject;
9
use Tests\Smalot\PdfParser\TestCase;
10
11
class PDFObjectTest extends TestCase
12
{
13
    public function testGetTextOnNullPage(): void
14
    {
15
        static::assertSame(' ', (new PDFObject(new Document()))->getText());
16
    }
17
18
    public function testGetTextOnPageWithoutContent(): void
19
    {
20
        $document = new Document();
21
22
        static::assertSame(' ', (new PDFObject($document, null, null))->getText(new Page($document)));
23
    }
24
}
25