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

TestCase::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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