Passed
Push — master ( a4ddd3...82bd79 )
by Alex
06:44
created

MiddlewareUnitTest::testMultipleMiddlewaresInOrderAndOmitMalformed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 64
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 39
c 0
b 0
f 0
dl 0
loc 64
rs 9.296
cc 1
nc 1
nop 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
declare(strict_types = 1);
3
namespace Mezon\Router\Tests\Standart;
4
5
use Mezon\Router\Router;
6
use Mezon\Router\RouterInterface;
7
use Mezon\Router\Tests\Base\MiddlewareTestClass;
8
use Mezon\Router\Tests\Base\BaseRouterUnitTestClass;
9
10
/**
11
 *
12
 * @psalm-suppress PropertyNotSetInConstructor
13
 */
14
class MiddlewareUnitTest extends MiddlewareTestClass
15
{
16
17
    /**
18
     *
19
     * {@inheritdoc}
20
     * @see BaseRouterUnitTestClass::getRouter()
21
     */
22
    protected function getRouter(): RouterInterface
23
    {
24
        return new Router();
25
    }
26
}
27