Passed
Push — test ( 7f1499...ccf3d3 )
by Someshwer
06:32
created

TestCase::getEnvironmentSetUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests;
4
5
use Orchestra\Testbench\TestCase as BaseTestCase;
6
use Someshwer\WorldCountries\Facades\World;
7
8
//use PHPUnit\Framework\TestCase as BaseTestCase;
9
10
class TestCase extends BaseTestCase
11
{
12
13
    protected function getPackageProviders($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app 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

13
    protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app)

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...
14
    {
15
        return ['Someshwer\WorldCountries\WorldDataServiceProvider'];
16
    }
17
18
    public function setUp(): void
19
    {
20
        parent::setUp();
21
    }
22
23
    /**
24
     * Define environment setup.
25
     *
26
     * @param  \Illuminate\Foundation\Application  $app
27
     * @return void
28
     */
29
    protected function getEnvironmentSetUp($app)
30
    {
31
        // Setup default database to use sqlite :memory:
32
    }
33
34
    /** @test */
35
    public function testStaticRoute()
36
    {
37
        // Arrange
38
        $info = World::info();
0 ignored issues
show
Bug introduced by
The method info() does not exist on Someshwer\WorldCountries\Facades\World. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

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

38
        /** @scrutinizer ignore-call */ 
39
        $info = World::info();
Loading history...
39
40
        // Assert
41
        $this->assertEquals($info['package_name'], 'Laravel - My World');
42
    }
43
44
}
45