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

SetContainerTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetContainer() 0 7 1
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
}