Completed
Push — master ( aba493...5356ed )
by Ruud
315:38 queued 305:00
created

Config::getInternalName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\ConfigBundle\Tests\Entity;
4
5
use Kunstmaan\ConfigBundle\Entity\AbstractConfig;
6
use PHPUnit\Framework\TestCase;
7
8
class Config extends AbstractConfig
9
{
10
    public function getDefaultAdminType()
11
    {
12
        return null;
13
    }
14
15
    public function getInternalName()
16
    {
17
        return null;
18
    }
19
20
    public function getLabel()
21
    {
22
        return null;
23
    }
24
}
25
26
class AbstractConfigTest extends TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
27
{
28
    public function testGettersAndSetters()
29
    {
30
        $entity = new Config();
31
32
        $this->assertInternalType('array', $entity->getRoles());
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
33
        $this->assertEquals('ROLE_SUPER_ADMIN', $entity->getRoles()[0]);
34
    }
35
}
36