AssetsTests::test_static_call()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace ByTIC\Assets\Tests;
4
5
use ByTIC\Assets\Assets;
6
7
/**
8
 * Class AssetsTests
9
 * @package ByTIC\Assets\Tests
10
 */
11
class AssetsTests extends AbstractTest
12
{
13
    public function test_static_call()
14
    {
15
        $collection = Assets::styles();
0 ignored issues
show
Bug Best Practice introduced by
The method ByTIC\Assets\Assets::styles() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        /** @scrutinizer ignore-call */ 
16
        $collection = Assets::styles();
Loading history...
16
        self::assertInstanceOf(Assets\AssetCollection::class, $collection);
17
    }
18
}
19