Skip to content

Commit 90f537b

Browse files
garakfabpot
authored andcommitted
add ResponseIsUnprocessable
1 parent 0d4336b commit 90f537b

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)