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.
Passed
Pull Request — master (#153)
by joseph
05:42
created

CopyPhpstormMetaTest::setup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Medium\CodeGeneration\PostProcessor;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\PostProcessor\CopyPhpstormMeta;
6
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;
7
8
/**
9
 * @medium
10
 * @covers \EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\PostProcessor\CopyPhpstormMeta
11
 */
12
class CopyPhpstormMetaTest extends AbstractTest
13
{
14
    public const WORK_DIR = self::VAR_PATH . '/' . self::TEST_TYPE_MEDIUM . '/CopyPhpstormMetaTest';
15
16
    /**
17
     * @var CopyPhpstormMeta
18
     */
19
    private $process;
20
21
    public function setup()
22
    {
23
        parent::setUp();
24
        $this->process = new CopyPhpstormMeta();
25
        $this->process->setPathToProjectRoot(self::WORK_DIR);
26
    }
27
28
    /**
29
     * @test
30
     */
31
    public function itCanCopyTheDirectoryIfItDoesNotExistIdempotently(): void
32
    {
33
        $this->process->run();
34
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/build.php');
35
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/container.meta.php');
36
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/dtofactory.meta.php');
37
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/entityfactory.meta.php');
38
        $this->process->run();
39
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/build.php');
40
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/container.meta.php');
41
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/dtofactory.meta.php');
42
        self::assertFileExists(self::WORK_DIR . '/.phpstorm.meta.php/entityfactory.meta.php');
43
    }
44
}
45