MinifierDefaultTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMinifierByDefaultOptions() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace gulch\Minify\Tests;
6
7
use PHPUnit\Framework\TestCase;
8
use gulch\Minify\Minifier;
9
10
class MinifierDefaultTest extends TestCase
11
{
12
    use GetDataTrait;
13
14
    /** @test */
15
    public function testMinifierByDefaultOptions()
16
    {
17
        $minifier = Minifier::createDefault();
18
19
        $this->assertSame(
20
            $minifier->process($this->getSourceCode()),
21
            $this->getMinifiedCode()
22
        );
23
    }
24
}
25