TestCase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageAliases() 0 4 1
A getPackageProviders() 0 4 1
A setUp() 0 2 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: evert
5
 * Date: 27/09/2017
6
 * Time: 22:05
7
 */
8
9
namespace PragmaBroadvertising\SolarEdge\Tests;
10
11
use Orchestra\Testbench\TestCase as BaseTestCase;
0 ignored issues
show
Bug introduced by
The type Orchestra\Testbench\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use PragmaBroadvertising\SolarEdge\SolarEdgeServiceProvider;
13
14
class TestCase extends BaseTestCase
15
{
16
    function setUp() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
        parent::setUp();
18
    }
19
20
    /**
21
     * @param \Illuminate\Foundation\Application $app
0 ignored issues
show
Bug introduced by
The type Illuminate\Foundation\Application was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
     *
23
     * @return array
24
     */
25
    protected function getPackageProviders($app)
26
    {
27
        return [
28
            SolarEdgeServiceProvider::class,
29
        ];
30
    }
31
32
    /**
33
     * @param \Illuminate\Foundation\Application $app
34
     * @return array
35
     */
36
    protected function getPackageAliases($app)
37
    {
38
        return [
39
            'SolarEdge' => 'PragmaBroadvertising\SolarEdge\Facades\SolarEdge'
40
        ];
41
    }
42
}