Completed
Push — master ( a1b2fc...b5e896 )
by Christian
01:58
created

AssetHelperTests   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreation() 0 7 1
1
<?php
2
class AssetHelperTests extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
3
{
4
    public function testCreation()
5
    {
6
        $assetHelper = new AssetHelper\AssetHelper;
7
8
        $this->assertContains('test.css', $assetHelper->link_css('test.css'));
9
        $this->assertContains('test.js', $assetHelper->link_js('test.js'));
10
    }
11
}
12