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

RequestMethodMiddlewareTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
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