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 (#116)
by joseph
35:50 queued 12:46
created

TestEntityGeneratorFactoryTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 11
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A itCanCreateFromAnFqn() 0 4 1
A setup() 0 6 2
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Medium\Entity\Testing\EntityGenerator;
4
5
use EdmondsCommerce\DoctrineStaticMeta\Entity\Testing\EntityGenerator\TestEntityGenerator;
6
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;
7
8
/**
9
 * @covers \EdmondsCommerce\DoctrineStaticMeta\Entity\Testing\EntityGenerator\TestEntityGeneratorFactory
10
 */
11
class TestEntityGeneratorFactoryTest extends AbstractTest
12
{
13
    public const WORK_DIR = AbstractTest::VAR_PATH . '/' . self::TEST_TYPE_MEDIUM . '/TestEntityGeneratorFactoryTest';
14
15
    private const TEST_ENTITY_FQN = self::TEST_PROJECT_ROOT_NAMESPACE
16
                                    . '\\Entities\\TestEntityGeneratorFactoryTestEntity';
17
18
    protected static $buildOnce = true;
19
20
    public function setup()
21
    {
22
        parent::setup();
23
        if (false === self::$built) {
24
            $this->getEntityGenerator()->generateEntity(self::TEST_ENTITY_FQN);
25
            self::$built = true;
26
        }
27
    }
28
29
    /**
30
     * @test
31
     * @medium
32
     */
33
    public function itCanCreateFromAnFqn()
34
    {
35
        $actual = $this->getTestEntityGeneratorFactory()->createForEntityFqn(self::TEST_ENTITY_FQN);
36
        self::assertInstanceOf(TestEntityGenerator::class, $actual);
37
    }
38
}
39