1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Add test for errors

This commit is contained in:
Michael Utz 2022-11-16 22:40:30 +03:00
parent a2045b85bc
commit cd5e0bffd3
2 changed files with 58 additions and 0 deletions

View file

@ -21,6 +21,7 @@ test('class constructor')
->favorite_movies->toBeEmpty();
test('tellName', function () {
throw new \Exception("Oops!");
expect($this->sut)
->tellName()->toBeString()->toContain('John');
})