TestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 8 1
A getFixture() 0 4 1
1
<?php
2
3
class TestCase extends Illuminate\Foundation\Testing\TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
    /**
6
     * Creates the application.
7
     *
8
     * @return Symfony\Component\HttpKernel\HttpKernelInterface
9
     */
10
    public function createApplication()
11
    {
12
        $unitTesting = true;
13
14
        $testEnvironment = 'testing';
15
16
        return require __DIR__.'/../../bootstrap/start.php';
17
    }
18
19
    public function getFixture($name)
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        return sys_get_temp_dir().'/';
22
    }
23
}
24