Issues (48)

tests/TestCase.php (3 issues)

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
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
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
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
}