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
Pull Request — master (#153)
by joseph
10:22
created

CopyPhpstormMetaTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setup() 0 5 1
A itCanCopyTheDirectoryIfItDoesNotExistIdempotently() 0 12 1
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