Skip to content

Commit c845814

Browse files
committed
feature #43671 add ResponseIsUnprocessable (garak)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- add ResponseIsUnprocessable | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #40894 | License | MIT | Doc PR | none Commits ------- 61df7f1752 add ResponseIsUnprocessable
2 parents d2fece0 + 90f537b commit c845814

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Test/BrowserKitAssertionsTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public static function assertResponseCookieValueSame(string $name, string $expec
9494
), $message);
9595
}
9696

97+
public static function assertResponseIsUnprocessable(string $message = ''): void
98+
{
99+
self::assertThatForResponse(new ResponseConstraint\ResponseIsUnprocessable(), $message);
100+
}
101+
97102
public static function assertBrowserHasCookie(string $name, string $path = '/', string $domain = null, string $message = ''): void
98103
{
99104
self::assertThatForClient(new BrowserKitConstraint\BrowserHasCookie($name, $path, $domain), $message);

0 commit comments

Comments
 (0)