Completed
Pull Request — master (#56)
by
unknown
02:11
created

ClassMetadata   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetModelShortName() 0 9 1
1
<?php
2
3
namespace Mapado\RestClientSdk\Tests\Units\Mapping;
4
5
use atoum;
6
use Mapado\RestClientSdk\Mapping\Relation;
7
8
/**
9
 * Class ClassMetadata
10
 */
11
class ClassMetadata extends atoum
12
{
13
    /**
14
     * testClassWithoutEntityAnnotation
15
     *
16
     * @access public
17
     * @return void
18
     */
19
    public function testGetModelShortName()
20
    {
21
        $this
22
            ->given($this->newTestedInstance('bars', 'Foo\Entity\Bar', 'Foo\Repository\BarRepository'))
23
            ->then
24
                ->variable($this->testedInstance->getModelShortName())
25
                ->isEqualTo('Bar')
26
        ;
27
    }
28
}
29