TestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 9 1
1
<?php
2
3
namespace Pixelpeter\IsoCodesValidation;
4
5
abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
6
{
7
    /**
8
     * The base URL to use while testing the application.
9
     *
10
     * @var string
11
     */
12
    protected $baseUrl = 'http://localhost';
13
14
    /**
15
     * Creates the application.
16
     *
17
     * @return \Illuminate\Foundation\Application
18
     */
19
    public function createApplication()
20
    {
21
        $app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php';
22
23
        $app->register(\Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class);
24
25
        $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
26
27
        return $app;
28
    }
29
}
30