Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
34 | 10 | protected function matches($other): bool |
|
35 | { |
||
36 | 10 | if ($other instanceof ResponseInterface |
|
37 | 10 | && $other->hasHeader($this->header) |
|
38 | ) { |
||
39 | 9 | return (bool) \preg_match('/' . \preg_quote($this->value) . '/i', $other->getHeaderLine($this->header)); |
|
40 | } |
||
41 | 1 | return false; |
|
42 | } |
||
58 |