mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-17 04:00:03 +02:00
Add test for errors
This commit is contained in:
parent
a2045b85bc
commit
cd5e0bffd3
2 changed files with 58 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ test('class constructor')
|
|||
->favorite_movies->toBeEmpty();
|
||||
|
||||
test('tellName', function () {
|
||||
throw new \Exception("Oops!");
|
||||
expect($this->sut)
|
||||
->tellName()->toBeString()->toContain('John');
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue