Passed
Pull Request — master (#2)
by ANTHONIUS
05:01
created

TestCase::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the EOffice project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace EOffice\Testing;
15
16
use EOffice\Core\EOffice;
17
use EOffice\Core\Exceptions\CoreException;
18
use Laravel\Lumen\Testing\TestCase as BaseTestCase;
19
use Mockery as m;
20
21
class TestCase extends BaseTestCase
22
{
23
    /**
24
     * {@inheritDoc}
25
     *
26
     * @throws CoreException
27
     */
28
    public function createApplication()
29
    {
30
        return (new EOffice())->bootstrap()->getApplication();
0 ignored issues
show
Bug Best Practice introduced by
The expression return new EOffice\Core\...rap()->getApplication() also could return the type EOffice\Core\Application which is incompatible with the return type mandated by Laravel\Lumen\Testing\Te...se::createApplication() of Symfony\Component\HttpKernel\HttpKernelInterface.
Loading history...
31
    }
32
33
    protected function tearDown(): void
34
    {
35
        m::close();
36
        parent::tearDown();
37
    }
38
}
39