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

CsvTwigTest::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 CsvTwigTest.
7
 */
8
class CsvTwigTest extends BaseTwigTest
9
{
10
    protected static $TEMP_PATH = '/../../tmp/csv/';
11
12
    //
13
    // PhpUnit
14
    //
15
16
    /**
17
     * @return array
18
     */
19
    public function formatProvider()
20
    {
21
        return [['csv']];
22
    }
23
24
    //
25
    // Tests
26
    //
27
28
    /**
29
     * @param string $format
30
     *
31
     * @throws \Exception
32
     *
33
     * @dataProvider formatProvider
34
     */
35 View Code Duplication
    public function testBasic($format)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
36
    {
37
        $path = $this->getDocument('documentSimple', $format);
38
39
        static::assertFileExists($path, 'File does not exist');
40
        static::assertGreaterThan(0, filesize($path), 'File is empty');
41
        static::assertStringEqualsFile($path, '"Foo","Bar"'.PHP_EOL.'"Hello","World"'.PHP_EOL, 'Unexpected content');
42
    }
43
44
    /**
45
     * @param string $format
46
     *
47
     * @throws \Exception
48
     *
49
     * @dataProvider formatProvider
50
     */
51 View Code Duplication
    public function testDocumentTemplate($format)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
52
    {
53
        $path = $this->getDocument('documentTemplate.csv', $format);
54
55
        static::assertFileExists($path, 'File does not exist');
56
        static::assertGreaterThan(0, filesize($path), 'File is empty');
57
        static::assertStringEqualsFile($path, '"Hello2","World"'.PHP_EOL.'"Foo","Bar2"'.PHP_EOL, 'Unexpected content');
58
    }
59
}
60