TestCase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 23
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageProviders() 0 4 1
A getPackageAliases() 0 6 1
A getEnvironmentSetUp() 0 8 1
1
<?php
2
3
namespace Tzsk\Sms\Tests;
4
5
use Orchestra\Testbench\TestCase as BaseTestCase;
6
use Tzsk\Sms\Tests\Mocks\Drivers\BarDriver;
7
8
class TestCase extends BaseTestCase
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
9
{
10
    protected function getPackageProviders($app)
11
    {
12
        return ['Tzsk\Sms\Provider\SmsServiceProvider'];
13
    }
14
15
    protected function getPackageAliases($app)
16
    {
17
        return [
18
            'Sms' => 'Tzsk\Sms\Facade\Sms',
19
        ];
20
    }
21
22
    protected function getEnvironmentSetUp($app)
23
    {
24
        $settings = require __DIR__.'/../src/Config/sms.php';
25
        $settings['drivers']['bar'] = ['key' => 'foo'];
26
        $settings['map']['bar'] = BarDriver::class;
27
28
        $app['config']->set('sms', $settings);
29
    }
30
}
31