FactoryTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 26
wmc 3
lcom 1
cbo 2
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testImplementsInterface() 0 4 1
A testBuildDevelopment() 0 4 1
A testBuildProduction() 0 4 1
1
<?php
2
3
namespace MinifineTest;
4
5
use Minifine\Factory;
6
7
class FactoryTest extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     *
11
     */
12
    public function testImplementsInterface()
13
    {
14
        $this->assertInstanceOf('Minifine\\Builder', new Factory());
15
    }
16
17
    /**
18
     * @covers Minifine\Factory::build
19
     */
20
    public function testBuildDevelopment()
21
    {
22
        $this->assertInstanceOf('Minifine\\Minifine', (new Factory())->build(TEST_DATA_DIR));
23
    }
24
25
    /**
26
     * @covers Minifine\Factory::build
27
     */
28
    public function testBuildProduction()
29
    {
30
        $this->assertInstanceOf('Minifine\\Minifine', (new Factory())->build(TEST_DATA_DIR, true));
31
    }
32
}
33