TestCase::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 7
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
        config()->set('app.faker_locale', 'tr_TR');
19
20
        $this->faker = Factory::create();
21
    }
22
23
    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

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