Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ResponseHeader | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
toString | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php declare(strict_types=1); |
2 | /* |
3 | * This file is part of Aplus Framework Testing Library. |
4 | * |
5 | * (c) Natan Felles <natanfelles@gmail.com> |
6 | * |
7 | * For the full copyright and license information, please view the LICENSE |
8 | * file that was distributed with this source code. |
9 | */ |
10 | namespace Framework\Testing\Constraints; |
11 | |
12 | use PHPUnit\Framework\Constraint\Constraint; |
13 | |
14 | /** |
15 | * Class ResponseHeader. |
16 | * |
17 | * @package testing |
18 | */ |
19 | final class ResponseHeader extends Constraint |
20 | { |
21 | use EvaluateTrait; |
22 | |
23 | protected mixed $value; |
24 | protected string $name; |
25 | |
26 | public function __construct(mixed $value, string $name) |
27 | { |
28 | $this->value = $value; |
29 | $this->name = $name; |
30 | } |
31 | |
32 | public function toString() : string |
33 | { |
34 | return "is equals the value of the Response Header '{$this->name}'"; |
35 | } |
36 | } |