Skip to content

Commit ae1386e

Browse files
Document new features
1 parent f3a7813 commit ae1386e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,14 @@ This actually asserts several facts:
155155
`application/json`
156156
2. The message body must be a valid JSON string (that means decodeable by
157157
`json_decode`)
158-
3. The encoded JSON object must match all constraints specified in the `$jsonConstraints` array. For this, the [helmich/phpunit-json-assert][json-assert] package will be used.
158+
3. The encoded JSON object must match all constraints specified in the
159+
`$jsonConstraints` array. For this, the [helmich/phpunit-json-assert][json-assert]
160+
package will be used.
161+
162+
##### `assertMessageBodyMatchesForm($message, $formConstraints)` / `bodyMatchesForm($formConstraints)`
163+
164+
This asserts that the message body contains `application/x-www-form-urlencoded`-encoded
165+
content, with individual variables matching the `$formConstraints` array.
159166

160167
##### `assertRequestHasMethod($request, $method)` / `hasMethod($method)`
161168

0 commit comments

Comments
 (0)