From 97e0a6cc25e2eb10978ec28c7cbbd1ff39baa6c1 Mon Sep 17 00:00:00 2001 From: sayuprc <41261915+sayuprc@users.noreply.github.com> Date: Sat, 15 Apr 2023 11:46:53 +0900 Subject: [PATCH] :memo: Updated document and created CHANGELOG.md (#19) --- CHANGELOG.md | 15 +++++++++++++++ docs/TestResponse.md | 11 ++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..91f06f1 --- /dev/null +++ b/CHANGELOG.md @@ -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. diff --git a/docs/TestResponse.md b/docs/TestResponse.md index 1a6eb96..d748652 100644 --- a/docs/TestResponse.md +++ b/docs/TestResponse.md @@ -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|| \ No newline at end of file +|`getBody()`|Retrieve the response body||