ZEROSPAM\Framework\SDK\Test\Base\TestCase
Base for making the different tests
Help you with a TestClient and preparing different kind of request
Synopsis
class TestCase
extends TestCase
{
- // methods
- public void tearDown()
- protected TestClient getTestClient()
- protected ?Transaction lastTransaction()
- protected array allTransactions()
- protected TestClient preSuccess()
- protected void validateRequest()
- protected TestClient preFailure()
- protected TestClient prepareQueue()
- protected void validateRequestUrl()
- protected void validateUrl()
- protected void validateQuery()
Hierarchy
Extends
- PHPUnit\Framework\TestCase
Methods
protected
- allTransactions() — All the transaction in order.
- getTestClient()
- lastTransaction() — The last transaction done (first if only one done).
- preFailure() — Prepare for a failure.
- preSuccess() — Run to set a success.
- prepareQueue() — Used to queue an exception.
- validateQuery() — Validate the query arguments
- validateRequest() — Validate that the request did contain the wanted arguments.
- validateRequestUrl() — Validate that the request URI contains the following strings.
- validateUrl() — Make sure url contains at least specified parts in contains.
public
History
-
2018-11-07T16:00:05+00:00 (commit #8929794)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
test(EmptyRequest): Fix test for empty request
-
2018-09-26T16:14:03+00:00 (commit #e5aa486)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(Tests): Take the Mockery counter into account for assertions
-
2018-07-16T14:26:38+00:00 (commit #290a97d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Split Ratelimited from BaseResponse New type of response can now be easily build.