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 (#101)
by joseph
18:59
created

UsesPHPMetaDataTraitUnitTest.php$0 ➔ getThat()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Small\Entity\Traits;
4
5
use Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder;
6
use EdmondsCommerce\DoctrineStaticMeta\Entity\Traits\UsesPHPMetaDataTrait;
7
use PHPUnit\Framework\TestCase;
8
9
/**
10
 * Class UsesPHPMetaDataTraitUnitTest
11
 *
12
 * @package EdmondsCommerce\DoctrineStaticMeta\Entity\Traits
13
 * @SuppressWarnings(PHPMD.UnusedLocalVariable)
14
 */
15
class UsesPHPMetaDataTraitUnitTest extends TestCase
16
{
17
18
    /**
19
     * @test
20
     * @small
21
     * @covers \EdmondsCommerce\DoctrineStaticMeta\Entity\Traits\UsesPHPMetaDataTrait::getGetters
22
     * @covers \EdmondsCommerce\DoctrineStaticMeta\Entity\Traits\UsesPHPMetaDataTrait::getSetters
23
     */
24
    public function testGetGettersAndSetters(): void
25
    {
26
        $testClass = new class ()
27
        {
28
            use UsesPHPMetaDataTrait;
29
30
            public function __construct()
31
            {
32
                $this->runInitMethods();
33
            }
34
35
            protected static function setCustomRepositoryClass(ClassMetadataBuilder $builder): void
0 ignored issues
show
Unused Code introduced by
The parameter $builder is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

35
            protected static function setCustomRepositoryClass(/** @scrutinizer ignore-unused */ ClassMetadataBuilder $builder): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
36
            {
37
                // TODO: Implement setCustomRepositoryClass() method.
38
            }
39
40
            public function getThis(): void
41
            {
42
            }
43
44
            public function getThat(): void
45
            {
46
            }
47
48
            public function setThis(): void
49
            {
50
            }
51
52
            public function setThat(): void
53
            {
54
            }
55
56
            private function getSomething(): void
0 ignored issues
show
Unused Code introduced by
The method getSomething() is not used, and could be removed.

This check looks for private methods that have been defined, but are not used inside the class.

Loading history...
57
            {
58
            }
59
60
            private function setSomething(): void
0 ignored issues
show
Unused Code introduced by
The method setSomething() is not used, and could be removed.

This check looks for private methods that have been defined, but are not used inside the class.

Loading history...
61
            {
62
            }
63
64
            protected function getSomethingElse(): void
65
            {
66
            }
67
68
            protected function setSomethingElse(): void
69
            {
70
            }
71
        };
72
        $expected  = [
73
            'getThis',
74
            'getThat',
75
        ];
76
        $actual    = $testClass->getGetters();
77
        self::assertSame($expected, $actual);
78
        $expected = [
79
            'setThis',
80
            'setThat',
81
        ];
82
        $actual   = $testClass->getSetters();
83
        self::assertSame($expected, $actual);
84
    }
85
}
86