Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TagRequestTest extends TestCase |
||
11 | { |
||
12 | public function testProcess(): void |
||
13 | { |
||
14 | $request = $this->createMock(ServerRequestInterface::class); |
||
15 | |||
16 | $request |
||
17 | ->expects($this->once()) |
||
18 | ->method('withAttribute') |
||
19 | ->with( |
||
20 | $this->equalTo('requestTag'), |
||
21 | $this->isType('string') |
||
22 | ) |
||
23 | ->willReturnSelf(); |
||
24 | |||
25 | $handler = $this->createMock(RequestHandlerInterface::class); |
||
26 | |||
27 | (new TagRequest())->process($request, $handler); |
||
28 | } |
||
30 |