Test Failed
Push — master ( 4e95aa...c2cb3f )
by mcfog
01:51
created

FixedResponseHandlerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php namespace Nimo\Tests;
2
3
/**
4
 * User: mcfog
5
 * Date: 15/9/13
6
 */
7
8
use Nimo\Handlers\FixedResponseHandler;
9
10
class FixedResponseHandlerTest extends NimoTestCase
11
{
12
    public function testFixedResponseHandler()
13
    {
14
        $answerRes = $this->getResponseMock();
15
        /** @noinspection PhpParamsInspection */
16
        $handler = FixedResponseHandler::wrap($answerRes);
17
18
        $returnValue = $handler->handle(
19
            $this->getRequestMock()
20
        );
21
22
        $this->assertSame($answerRes, $returnValue);
23
    }
24
25
26
}
27