SetContainerTraitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

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
}