forked from pact-foundation/pact-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mismatch.php
32 lines (28 loc) · 1.02 KB
/
Mismatch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace PhpPactTest\CompatibilitySuite\Constant;
class Mismatch
{
public const VERIFIER_MISMATCH_TYPE_MAP = [
'MethodMismatch' => false,
'PathMismatch' => false,
'StatusMismatch' => 'Response status did not match',
'QueryMismatch' => false,
'HeaderMismatch' => 'Headers had differences',
'BodyTypeMismatch' => 'Body type had differences',
'BodyMismatch' => 'Body had differences',
'MetadataMismatch' => 'Metadata had differences',
];
public const VERIFIER_MISMATCH_ERROR_MAP = [
'One or more of the setup state change handlers has failed' => 'State change request failed',
];
public const MOCK_SERVER_MISMATCH_TYPE_MAP = [
'method' => 'MethodMismatch',
'path' => 'PathMismatch',
'status' => 'StatusMismatch',
'query' => 'QueryMismatch',
'header' => 'HeaderMismatch',
'body-content-type' => 'BodyTypeMismatch',
'body' => 'BodyMismatch',
'metadata' => 'MetadataMismatch',
];
}