TestCase::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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