Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Updated doc and changelog #39

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## v3.3.0 - 2024-03-12

### Added

- Add the following methods in HttpTestCase class.
- `head`
- `put`
- `delete`
- `options`
- `patch`
- `sendRequest`

## v3.2.0 - 2023-12-01

### Added
Expand Down
8 changes: 7 additions & 1 deletion docs/HttpTestCase.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
|`getUriFactory()`|Get an instance of a class that implements the `Psr\Http\Message\UriFactoryInterface`|You need to implement it|
|`getStreamFactory()`|Get an instance of a class that implements the `Psr\Http\Message\StreamFactoryInterface`|You need to implement it|
|`get($uri, $options)`|Send a GET request||
|`head($uri, $options)`|Send a HEAD request||
|`post($uri, $options)`|Send a POST request||
|`put($uri, $options)`|Send a PUT request||
|`delete($uri, $options)`|Send a DELETE request||
|`options($uri, $options)`|Send a OPTIONS request||
|`patch($uri, $options)`|Send a PATCH request||
|`sendRequest($method, $uri, $options)`|Send a request||

## Request options format

Expand Down Expand Up @@ -107,4 +113,4 @@ $options = [
]
],
];
```
```
Loading