Passed
Push — master ( c8d0a7...6ae56f )
by Phillip
01:28
created

SetContainerTraitTest::testSetContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
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
}