TestCase::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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