Skip to content

Commit

Permalink
📝 Updated document and created CHANGELOG.md (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayuprc committed Apr 15, 2023
1 parent 6b5fad8 commit 97e0a6c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Change Log

## v1.1.0 - 2023-04-15

### Added

- Add `assertNotXxx` methods. ([#11](https://github.com/sayuprc/http-test-case/issues/11))

### Changed

- Changed exception message when name or contents does not exist in a multipart request.

## v1.0.0 - 2023-03-31

First release.
11 changes: 10 additions & 1 deletion docs/TestResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,26 @@
|Method|Description|Note|
|---|---|---|
|`assertStatusCode($expected)`|Assert that the HTTP status code is the same as $expected||
|`assertNotStatusCode($expected)`|Assert that the HTTP status code is the not same as $expected||
|`assertHeader($name, $expected)`|Assert that the item specified by $name from the response header is the same as $expected||
|`assertNotHeader($name, $expected)`|Assert that the item specified by $name from the response header is the not same as $expected||
|`assertHeaderLine($name, $expected)`|Assert the comma-concatenated string of the item specified by $name from the response header is the same as $expected||
|`assertNotHeaderLine($name, $expected)`|Assert the comma-concatenated string of the item specified by $name from the response header is the not same as $expected||
|`assertContentType($expected)`|Assert that the Content-Type is the same as $expected||
|`assertNotContentType($expected)`|Assert that the Content-Type is the not same as $expected||
|`assertLocation($expected)`|Assert that the Location is the same as $expected||
|`assertNotLocation($expected)`|Assert that the Location is the not same as $expected||
|`assertBody($expected)`|Assert that the response body is the same as $expected||
|`assertNotBody($expected)`|Assert that the response body is the not same as $expected||
|`assertBodyContains($needle)`|Assert that the response body is contains $needle||
|`assertNotBodyContains($needle)`|Assert that the response body is not contains $needle||
|`assertJson($expected)`|Assert that the json string is the same as $expected||
|`assertNotJson($expected)`|Assert that the json string is the not same as $expected||
|`assertJsonKey($key, $expected)`|Assert that the item specified by $key in the json string is the same as $expected|If accessing a nested item, please assign the dot-separated values to $key|
|`assertNotJsonKey($key, $expected)`|Assert that the item specified by $key in the json string is the not same as $expected|If accessing a nested item, please assign the dot-separated values to $key|
|`dumpHeaders()`|Dump the all response headers||
|`dumpHeader($name)`|Dump the item specified by $name from the response header||
|`dumpBody()`|Dump the response body||
|`getHeader($name)`|Retrieve the item specified by $name from the response header||
|`getHeaderLine($name)`|Retrieve the comma-concatenated string of the item specified by $name from the response header||
|`getBody()`|Retrieve the response body||
|`getBody()`|Retrieve the response body||

0 comments on commit 97e0a6c

Please sign in to comment.