# Source of file Verbose.php

Size: 6,250 Bytes - Last Modified: 2016-08-28T19:38:31+00:00

## /Users/dshafik/src/akamai-open/edgegrid-auth-php/src/Handler/Verbose.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 33
Covered by 19 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

34
Covered by 19 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

35
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

36
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

37
Covered by 2 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

38 39
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

40 41 42
Covered by 19 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

43
Covered by 6 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

44
Covered by 6 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

45
Covered by 2 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamStringInvalid
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringInvalid

46 47
Covered by 4 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid

48 49 50
Covered by 17 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid

51
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamStringErrorInvalid

52 53 54
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

55
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString

56 57 58
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

59
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

60 61 62
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

63
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

64 65 66
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

67
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

68
Covered by 16 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseSingleStreamString
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseDualStreamString

69 70 71 72 73 74 75 76 77 78 79
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

80 81 82 83 84 85
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

86 87
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

88 89 90 91 92 93 94 95 96 97 98
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

99
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

100 101
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

102
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

103
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

104 105
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

106 107
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

108
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

109
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect

110
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect

111
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect

112 113
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

114 115
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

116
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

117
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

118
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

119 120
Covered by 9 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

121
Covered by 9 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

122
Covered by 9 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

123 124 125 126
Covered by 11 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

127
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

128 129
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

130
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

131 132
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

133
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

134
Covered by 2 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

135 136 137
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

138 139
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

140 141
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

142
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

143
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

144 145
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

146
Covered by 2 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

147
Covered by 2 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

148
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

149 150 151 152
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

153 154
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

155
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

156 157
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

158 159 160 161 162
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

163 164
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

165
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

166
Covered by 1 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse

167 168
Covered by 14 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNoResponse
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionNoCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithCode
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseResponseExceptionWithBody

169 170
Covered by 10 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

171
Covered by 10 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

172
Covered by 7 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testInstanceVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseSingle
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testStaticVerboseMultiple
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRedirect
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseError
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseMixed

173 174 175
Covered by 3 test(s):

- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseNonJson
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseRequestHandler
- Akamai\Open\EdgeGrid\Tests\Handler\VerboseTest::testVerboseErrorNonJson

176 177 178

    <?php

    /**

     * Akamai {OPEN} EdgeGrid Auth for PHP

     *

     * Provides Request Signing as per

     * {@see https://developer.akamai.com/introduction/Client_Auth.html}

     * as GuzzleHttp a Middleware Handlers

     *

     * @author Davey Shafik <dshafik@akamai.com>

     * @copyright Copyright 2015 Akamai Technologies, Inc. All rights reserved.

     * @license Apache 2.0

     * @link https://github.com/akamai-open/edgegrid-auth-php

     * @link https://developer.akamai.com

     * @link https://developer.akamai.com/introduction/Client_Auth.html

     */

    namespace Akamai\Open\EdgeGrid\Handler;

    use Akamai\Open\EdgeGrid\Exception\HandlerException\IOException;

    /**

     * Verbose Response Guzzle Middleware Handler

     *

     * @package Akamai {OPEN} EdgeGrid Auth

     */

    class Verbose

    {

        protected $outputStream;

        protected $errorStream;

        public function __construct($outputStream = null, $errorStream = null)

        {

            $errorStreamException = null;

            if (!is_resource($errorStream) && $errorStream !== null) {

                $fp = @fopen($errorStream, 'a+');

                if (!$fp) {

                    $errorStreamException = new IOException("Unable to use error stream: " . (string) $errorStream);

                }

                $errorStream = $fp;

            }

            if (!is_resource($outputStream) && $outputStream !== null) {

                $fp = @fopen($outputStream, 'a+');

                if (!$fp) {

                    throw new IOException("Unable to use output stream: " . (string) $outputStream);

                }

                $outputStream = $fp;

            }

            if ($errorStreamException instanceof \Exception) {

                throw $errorStreamException;

            }

            if ($outputStream !== null && $errorStream === null) {

                $errorStream = $outputStream;

            }

            if ($outputStream === null && $errorStream === null) {

                $errorStream = fopen('php://stderr', 'a');

            }

            if ($outputStream === null) {

                $outputStream = fopen('php://output', 'a');

            }

            $this->outputStream = $outputStream;

            $this->errorStream = $errorStream;

        }

        /**

         * Handle the request/response

         *

         * @param callable $handler

         * @return \Closure

         */

        public function __invoke(callable $handler)

        {

            $colors = [

                'red' => "",

                'yellow' => "",

                'cyan' => "",

                'reset' => "",

            ];

            if (PHP_SAPI == 'cli') {

                $colors = [

                    'red' => "\x1b[31;01m",

                    'yellow' => "\x1b[33;01m",

                    'cyan' => "\x1b[36;01m",

                    'reset' => "\x1b[39;49;00m",

                ];

            }

            return function (

                \Psr\Http\Message\RequestInterface $request,

                array $config

            ) use (

                $handler,

                $colors

            ) {

                fputs($this->outputStream, "{$colors['cyan']}===> [VERBOSE] Request: \n");

                fputs($this->outputStream, "{$colors['yellow']}" . $this->getBody($request));

                fputs($this->outputStream, "{$colors['reset']}\n");

                return $handler($request, $config)->then(

                    function (\Psr\Http\Message\ResponseInterface $response) use ($colors) {

                        $statusCode = $response->getStatusCode();

                        if ($statusCode > 299 && $statusCode < 400) {

                            fputs($this->outputStream, "{$colors['cyan']}===> [VERBOSE] Redirected: ");

                            fputs($this->outputStream, $response->getHeader('Location')[0]);

                            fputs($this->outputStream, "{$colors['reset']}\n");

                        } else {

                            $responseBody = $this->getBody($response);

                            if ($statusCode > 399 && $statusCode < 600) {

                                fputs($this->errorStream, "{$colors['red']}===> [ERROR] An error occurred: \n");

                                fputs($this->errorStream, "{$colors['yellow']}" . $responseBody);

                                fputs($this->errorStream, "{$colors['reset']}\n");

                            } else {

                                fputs($this->outputStream, "{$colors['cyan']}===> [VERBOSE] Response: \n");

                                fputs($this->outputStream, "{$colors['yellow']}" . $responseBody);

                                fputs($this->outputStream, "{$colors['reset']}\n");

                            }

                        }

                        return $response;

                    },

                    function (\Exception $reason) use ($colors) {

                        fputs($this->outputStream, "{$colors['red']}===> [ERROR] An error occurred: \n");

                        fputs($this->outputStream, "{$colors['yellow']}");

                        $code = $reason->getCode();

                        if (!empty($code)) {

                            $code .= ': ';

                        }

                        $message = $reason->getMessage();

                        fputs($this->outputStream, ((!empty($code)) ? $code : "") . $message);

                        $response = $reason instanceof \GuzzleHttp\Exception\RequestException

                            ? $reason->getResponse()

                            : false;

                        if ($response instanceof \Psr\Http\Message\ResponseInterface) {

                            $body = $response->getBody()->getContents();

                            if (!empty($body)) {

                                fputs($this->outputStream, "\n{$colors['yellow']}" . $body);

                            }

                        }

                        fputs($this->outputStream, "{$colors['reset']}\n");

                        return new \GuzzleHttp\Promise\RejectedPromise($reason);

                    }

                );

            };

        }

        protected function getBody(\Psr\Http\Message\MessageInterface $message)

        {

            $body = trim($message->getBody());

            if ($message->getBody()->getSize() == 0 || empty($body)) {

                if ($message instanceof \Psr\Http\Message\ResponseInterface) {

                    return "No response body returned";

                }

                return "No request body sent";

            }

            $result = json_decode($body);

            if ($result !== null) {

                return json_encode($result, JSON_PRETTY_PRINT);

            }

            return $body;

        }

    }