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.
Completed
Push — master ( 0dcb27...fb7903 )
by Mewes
11:26
created

PdfTwigTest::formatProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace MewesK\TwigSpreadsheetBundle\Tests\Twig;
4
5
/**
6
 * Class PdfTwigTest.
7
 */
8
class PdfTwigTest extends BaseTwigTest
9
{
10
    protected static $TEMP_PATH = '/../../tmp/pdf/';
11
12
    //
13
    // PhpUnit
14
    //
15
16
    /**
17
     * @return array
18
     */
19
    public function formatProvider()
20
    {
21
        return [['pdf']];
22
    }
23
24
    //
25
    // Tests
26
    //
27
28
    /**
29
     * @param string $format
30
     *
31
     * @throws \Exception
32
     *
33
     * @dataProvider formatProvider
34
     */
35
    public function testBasic($format)
36
    {
37
        // Skip PDF test for nightly builds of PHP since mPDF doesn't work
38
        if (version_compare(PHP_VERSION, '7.0.0-dev', '>=')) {
39
            return;
40
        }
41
42
        $path = $this->getDocument('cellProperties', $format);
43
44
        static::assertFileExists($path, 'File does not exist');
45
        static::assertGreaterThan(0, filesize($path), 'File is empty');
46
    }
47
}
48