AssetPackageTest::tearDown()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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