Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ResponseStatusCode | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
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 ResponseStatusCode. |
16 | * |
17 | * @package testing |
18 | */ |
19 | final class ResponseStatusCode extends Constraint |
20 | { |
21 | use EvaluateTrait; |
22 | |
23 | protected mixed $value; |
24 | |
25 | public function __construct(mixed $value) |
26 | { |
27 | $this->value = $value; |
28 | } |
29 | |
30 | public function toString() : string |
31 | { |
32 | return "is equals the Response Status Code {$this->value}"; |
33 | } |
34 | } |