CollectorCollectionFactoryTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testCreate() 0 7 1
1
<?php
2
3
use Flagbit\Bundle\MetricsBundle\Collector\CollectorCollection;
4
use Flagbit\Bundle\MetricsBundle\Collector\Factory\CollectorCollectionFactory;
5
use PHPUnit\Framework\TestCase;
6
7
class CollectorCollectionFactoryTest extends TestCase
8
{
9
    /**
10
     * @var CollectorCollectionFactory
11
     */
12
    private $factory;
13
14
    protected function setUp()
15
    {
16
        $this->factory = new CollectorCollectionFactory();
17
    }
18
19
    public function testCreate()
20
    {
21
        $this->assertInstanceOf(
22
            CollectorCollection::class,
23
            $this->factory->create()
24
        );
25
    }
26
} 
27