ObjectManagerAwareTraitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 1
cbo 1
dl 0
loc 12
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\Doctrine\Test\ObjectManager;
7
8
use Doctrine\Common\Persistence\ObjectManager;
9
use PHPUnit_Framework_TestCase as TestCase;
10
use Thorr\Persistence\Doctrine\ObjectManager\ObjectManagerAwareTrait;
11
12
class ObjectManagerAwareTraitTest extends TestCase
13
{
14
    public function testAccessors()
15
    {
16
        $sut           = $this->getMockForTrait(ObjectManagerAwareTrait::class);
17
        $objectManager = $this->getMock(ObjectManager::class);
18
19
        $sut->setObjectManager($objectManager);
20
21
        $this->assertSame($objectManager, $sut->getObjectManager());
22
    }
23
}
24