GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DompdfFactoryTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\DompdfBundle\Tests\Factory;
13
14
use Core23\DompdfBundle\Factory\DompdfFactory;
15
use PHPUnit\Framework\TestCase;
16
17
final class DompdfFactoryTest extends TestCase
18
{
19
    /**
20
     * @var DompdfFactory
21
     */
22
    private $dompdfFactory;
23
24
    protected function setUp(): void
25
    {
26
        $this->dompdfFactory = new DompdfFactory([
27
            'dpi' => 100,
28
        ]);
29
    }
30
31
    public function testCreate(): void
32
    {
33
        $dompdf = $this->dompdfFactory->create();
34
35
        $options = $dompdf->getOptions();
36
37
        static::assertSame(100, $options->getDpi());
38
    }
39
40
    public function testCreateWithOptions(): void
41
    {
42
        $dompdf = $this->dompdfFactory->create([
43
            'dpi'     => 200,
44
            'tempDir' => 'foo',
45
        ]);
46
47
        $options = $dompdf->getOptions();
48
49
        static::assertSame('foo', $options->getTempDir());
50
        static::assertSame(200, $options->getDpi());
51
    }
52
}
53