ExpectedError
in package
Table of Contents
- $code : int|null
- $codeName : string|null
- $codeNameMap : array<string|int, mixed>
- $excludedLabels : array<string|int, mixed>
- $expectedResult : ExpectedResult|null
- $includedLabels : array<string|int, mixed>
- $isClientError : bool|null
- $isError : bool
- $messageContains : string|null
- __construct() : mixed
- assert() : void
- Assert the outcome of an operation.
- assertCodeName() : void
- assertIsClientError() : void
Properties
$code
private
int|null
$code
$codeName
private
string|null
$codeName
$codeNameMap
private
static array<string|int, mixed>
$codeNameMap
= ['Interrupted' => 11601, 'MaxTimeMSExpired' => 50, 'NoSuchTransaction' => 251, 'OperationNotSupportedInTransaction' => 263, 'WriteConflict' => 112]
Tags
$excludedLabels
private
array<string|int, mixed>
$excludedLabels
= []
$expectedResult
private
ExpectedResult|null
$expectedResult
$includedLabels
private
array<string|int, mixed>
$includedLabels
= []
$isClientError
private
bool|null
$isClientError
$isError
private
bool
$isError
= false
$messageContains
private
string|null
$messageContains
Methods
__construct()
public
__construct(stdClass|null $o, EntityMap $entityMap) : mixed
Parameters
- $o : stdClass|null
- $entityMap : EntityMap
Return values
mixed —assert()
Assert the outcome of an operation.
public
assert([Throwable|null $e = null ]) : void
Parameters
- $e : Throwable|null = null
-
Exception (if any) from executing an operation
Return values
void —assertCodeName()
private
assertCodeName(ServerException $e) : void
Parameters
- $e : ServerException
Return values
void —assertIsClientError()
private
assertIsClientError(Throwable $e) : void
Parameters
- $e : Throwable