Passed
Push — master ( bf6407...ffdf3e )
by Felipe
02:35
created

testMiddlewareCanStopNextExecutions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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\Middleware;
12
13
use CoiSA\Http\Middleware\MiddlewareAggregator;
14
use CoiSA\Http\Test\Handler\AbstractMiddlewareTest;
15
16
/**
17
 * Class MiddlewareAggregatorTest
18
 *
19
 * @package CoiSA\Http\Test\Middleware
20
 */
21
final class MiddlewareAggregatorTest extends AbstractMiddlewareTest
22
{
23
    public function setUp(): void
24
    {
25
        parent::setUp();
26
27
        $this->middleware = new MiddlewareAggregator();
28
    }
29
30
    public function testEmptyMiddlewareReturnHandlerResponse(): void
31
    {
32
        $response = $this->middleware->process($this->serverRequest->reveal(), $this->nextHandler->reveal());
33
        $this->assertSame($this->nextResponse->reveal(), $response);
34
    }
35
36
    public function testMiddlewareExecuteAsFifo(): void
37
    {
38
        $this->markTestIncomplete();
39
    }
40
41
    public function testMiddlewareCanStopNextExecutions(): void
42
    {
43
        $this->markTestIncomplete();
44
    }
45
}
46