ObjectManagerAwareTraitTest::testAccessors()   A
last analyzed

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\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