StructureTestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInitStructure() 0 9 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Unit\Entities\Theme;
4
5
use Maestriam\Samurai\Entities\Structure;
6
use Maestriam\Samurai\Entities\Vendor;
7
use Maestriam\Samurai\Tests\TestCase;
8
9
class StructureTestCase extends TestCase
10
{
11
    public function testInitStructure()
12
    {
13
        $vendor = new Vendor('bands/dio');
14
15
        $structure = new Structure($vendor);
16
17
        $this->assertObjectHasFunction($structure, 'public');
18
        $this->assertObjectHasFunction($structure, 'assets');
19
        $this->assertObjectHasFunction($structure, 'source');
20
    }
21
}
22