Test Failed
Push — master ( 257d98...3364ef )
by Yunus Emre
06:12
created

TestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 2
b 0
f 0
dl 0
loc 21
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageProviders() 0 4 1
A getEnvironmentSetUp() 0 3 1
A setUp() 0 5 1
1
<?php
2
3
namespace TarfinLabs\Parasut\Tests;
4
5
use Faker\Factory;
6
use Faker\Generator;
7
use Orchestra\Testbench\TestCase as Orchestra;
8
use TarfinLabs\Parasut\ParasutServiceProvider;
9
10
abstract class TestCase extends Orchestra
11
{
12
    protected Generator $faker;
13
14
    public function setUp(): void
15
    {
16
        parent::setUp();
17
18
        $this->faker = Factory::create('tr_TR');
19
    }
20
21
    protected function getPackageProviders($app): array
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

21
    protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app): array

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...
22
    {
23
        return [
24
            ParasutServiceProvider::class,
25
        ];
26
    }
27
28
    protected function getEnvironmentSetUp($app): void
29
    {
30
        parent::getEnvironmentSetUp($app);
31
    }
32
}
33