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

DataMapperManagerAwareTraitTest::testAccessors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
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