Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class RequestFactoryMiddlewareTest extends UnitTestCase |
||
18 | { |
||
19 | /** @var mixed */ |
||
20 | private $request; |
||
21 | /** @var mixed */ |
||
22 | private $response; |
||
23 | /** @var mixed */ |
||
24 | private $factory; |
||
25 | /** @var RequestFactoryMiddleware */ |
||
26 | private $middleware; |
||
27 | |||
28 | public function setUp() |
||
35 | } |
||
36 | |||
37 | public function testApplyRequest() |
||
38 | { |
||
39 | $newRequest = clone $this->request; |
||
40 | $this->factory->shouldReceive('fromRequest')->once()->with($this->request)->andReturn($newRequest); |
||
41 | |||
42 | $this->assertSame($newRequest, $this->middleware->applyRequest($this->request, [])); |
||
43 | } |
||
44 | |||
45 | public function testApplyResponse() |
||
48 | } |
||
49 | } |
||
50 |