Completed
Push — master ( d9ba74...595cfb )
by Stefano
20:57
created

DataMapperManagerAwareTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
wmc 1
lcom 0
cbo 2
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAccessors() 0 9 1
1
<?php
2
/**
3
 * @license See the file LICENSE for copying permission
4
 */
5
6
namespace Thorr\Persistence\Test\DataMapper\Manager;
7
8
use PHPUnit_Framework_TestCase as TestCase;
9
use Thorr\Persistence\DataMapper\Manager\DataMapperManager;
10
use Thorr\Persistence\DataMapper\Manager\DataMapperManagerAwareTrait;
11
12
class DataMapperManagerAwareTraitTest extends TestCase
13
{
14
    public function testAccessors()
15
    {
16
        $sut = $this->getMockForTrait(DataMapperManagerAwareTrait::class);
17
        $dmm = new DataMapperManager();
18
19
        $sut->setDataMapperManager($dmm);
20
21
        $this->assertSame($dmm, $sut->getDataMapperManager());
22
    }
23
}
24