Completed
Push — master ( 58c980...3e9401 )
by David
13s queued 11s
created

AddInterfaceOnDaoTest::testGetName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TheCodingMachine\TDBM\Utils\Annotation;
4
5
use BadMethodCallException;
6
use PHPUnit\Framework\TestCase;
7
use TheCodingMachine\TDBM\Utils\GeneratorListenerInterface;
8
9
class AddInterfaceOnDaoTest extends TestCase
10
{
11
12
    public function testConstruct(): void
13
    {
14
        $this->expectException(BadMethodCallException::class);
15
        new AddInterfaceOnDao(['foo' => 'bar']);
16
    }
17
18
    public function testGetName(): void
19
    {
20
        $interfaces = new AddInterfaceOnDao(['name' => GeneratorListenerInterface::class]);
21
        $this->assertSame(GeneratorListenerInterface::class, $interfaces->getName());
22
    }
23
}
24