BaseTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 3 1
A getFaker() 0 4 1
1
<?php
2
3
namespace Bludata\Lumen\Tests;
4
5
use Faker\Factory;
6
use Laravel\Lumen\Testing\TestCase;
7
8
abstract class BaseTest extends TestCase
9
{
10
    /**
11
     * Creates the application.
12
     *
13
     * @return \Laravel\Lumen\Application
0 ignored issues
show
Documentation introduced by
Should the return type not be \Laravel\Lumen\Application|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
14
     */
15
    public function createApplication()
16
    {
17
    }
18
19
    public function getFaker($locale = 'pt_BR')
20
    {
21
        return Factory::create($locale);
22
    }
23
}
24