SetContainerTraitTest::testSetContainer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Deployee\Components\Container;
5
6
7
use PHPUnit\Framework\TestCase;
8
9
class SetContainerTraitTest extends TestCase
10
{
11
    /**
12
     * @throws ContainerException
13
     */
14
    public function testSetContainer()
15
    {
16
        $container = new Container();
17
        $object = new ContainerAwareClass();
18
        $object->setContainer($container);
19
20
        $this->assertSame($container, $object->getContainer());
21
    }
22
}