Completed
Push — master ( 3ac182...d71655 )
by Wilmer
13:12 queued 09:23
created

ExampleCest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 23
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A tryToTest() 0 5 1
A _after() 0 3 1
A _before() 0 3 1
1
<?php
2
3
namespace terabytesoft\assets\fontawesome\tests;
4
5
use terabytesoft\assets\fontawesome\tests\FunctionalTester;
6
use terabytesoft\assets\fontawesome\cdn\css\CdnAllAsset;
7
use yii\web\AssetBundle;
8
use yii\web\View;
9
10
class ExampleCest
11
{
12
    public function _before(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

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

12
    public function _before(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
13
    {
14
        $this->view = new View();
0 ignored issues
show
Bug Best Practice introduced by
The property view does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
15
    }
16
17
    /**
18
     * _after
19
     *
20
     * @param UnitTester $I
21
     */
22
    public function _after(UnitTester $I): void
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

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

22
    public function _after(/** @scrutinizer ignore-unused */ UnitTester $I): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
        unset($this->view);
25
    }
26
27
    // tests
28
    public function tryToTest(FunctionalTester $I)
0 ignored issues
show
Unused Code introduced by
The parameter $I is not used and could be removed. ( Ignorable by Annotation )

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

28
    public function tryToTest(/** @scrutinizer ignore-unused */ FunctionalTester $I)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
    {
30
        $result = $this->view->renderFile(codecept_data_dir() . 'example.php');
31
32
        var_dump($result);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($result) looks like debug code. Are you sure you do not want to remove it?
Loading history...
33
    }
34
}
35