Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class HeaderContains extends Constraint |
||
10 | { |
||
11 | 1 | use WithHeaderResponseExporter; |
|
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $header; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $value; |
||
21 | |||
22 | /** |
||
23 | * HeaderIsEqualTo constructor. |
||
24 | * |
||
25 | * @param string $header |
||
26 | * @param string $value |
||
27 | */ |
||
28 | 13 | public function __construct(string $header, string $value) |
|
29 | { |
||
30 | 13 | $this->header = $header; |
|
31 | 13 | $this->value = $value; |
|
32 | 13 | } |
|
33 | |||
34 | 10 | protected function matches($other): bool |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 1 | protected function failureDescription($other): string |
|
50 | } |
||
51 | |||
52 | |||
53 | 1 | public function toString(): string |
|
58 |