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