Passed
Push — master ( 846edf...d5342d )
by Felipe
01:54
created

RequestMethodMiddlewareTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of coisa/http.
4
 *
5
 * (c) Felipe Sayão Lobato Abreu <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace CoiSA\Http\Test\Handler;
12
13
use CoiSA\Http\Middleware\RequestMethodMiddleware;
14
use Fig\Http\Message\RequestMethodInterface;
15
16
/**
17
 * Class RequestMethodMiddlewareTest
18
 *
19
 * @package CoiSA\Http\Test\Handler
20
 */
21
final class RequestMethodMiddlewareTest extends AbstractMiddlewareTest
22
{
23
    public function setUp(): void
24
    {
25
        parent::setUp();
26
27
        $this->middleware = new RequestMethodMiddleware(
28
            RequestMethodInterface::METHOD_GET,
29
            $this->handler->reveal()
30
        );
31
    }
32
}
33