Skip to content

Commit 52c3741

Browse files
committed
ITT: Exception asserts readme info added.
1 parent d253090 commit 52c3741

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,16 @@ $this->dontSeeInDatabaseMany('posts', [
185185
]);
186186
```
187187
188+
### ExceptionAsserts
189+
190+
#### `willSeeException()`
191+
192+
Adding expectation that exception of the specified class, with specified message and specified code will be thrown:
193+
194+
```php
195+
$this->willSeeException(RuntimeException::class, 'Oops! Houston, we have a problem!');
196+
```
197+
188198
### LogFileAsserts
189199
190200
#### `assertLogFileExists()`

0 commit comments

Comments
 (0)