FactoryTest::testBuildProduction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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