Closed exzachlyvv closed 3 years ago
This is actually really helpful for when the Http validation code asserts that the same random int was returned.
if ($response['id'] !== $this->randomKey) {
throw new InvalidIdResponseException();
}
I like the idea of unit testing down to the Http level.
A few solutions come to mind:
What do you think?
I think public gettable probably is the simplest
Got this one cleaned up 💪
Closes #5 - throw an exception if we got a null response.
In the PR, I also added guzzle and orchestra testbench dependencies. This allows us to test the Http facade from unit tests.