AssetPackageTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 3 1
A testGetFullName() 0 4 1
1
<?php
2
/**
3
 * Asset Packagist.
4
 *
5
 * @link      https://github.com/hiqdev/asset-packagist
6
 * @package   asset-packagist
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\assetpackagist\tests\unit\models;
12
13
use hiqdev\assetpackagist\models\AssetPackage;
14
15
class AssetPackageTest extends \PHPUnit\Framework\TestCase
16
{
17
    /**
18
     * @var AssetPackage
19
     */
20
    protected $object;
21
22
    protected $type = 'bower';
23
    protected $name = 'jquery';
24
25
    protected function setUp()
26
    {
27
        $this->object = new AssetPackage($this->type, $this->name);
28
    }
29
30
    protected function tearDown()
31
    {
32
    }
33
34
    public function testGetFullName()
35
    {
36
        $this->assertSame($this->type . '-asset/' . $this->name, $this->object->getFullName());
37
    }
38
}
39