ContainerTraitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetSetContainerWithTrait() 0 8 1
1
<?php
2
/**
3
 * Copyright 2017 NanoSector
4
 *
5
 * You should have received a copy of the MIT license with the project.
6
 * See the LICENSE file for more information.
7
 */
8
9
namespace Yoshi2889\Container\Tests;
10
11
use PHPUnit\Framework\TestCase;
12
use Yoshi2889\Container\ComponentContainer;
13
14
class ContainerTraitTest extends TestCase
15
{
16
	public function testGetSetContainerWithTrait()
17
	{
18
		$container = new ComponentContainer();
19
20
		$class = new SampleContainerTraitClass();
21
		$class->setContainer($container);
22
23
		self::assertSame($container, $class->getContainer());
24
	}
25
}
26