mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
Get better short message output
This commit is contained in:
parent
a6351e49a4
commit
e09c38cc51
3 changed files with 54 additions and 100 deletions
|
|
@ -21,13 +21,17 @@ test('class constructor')
|
|||
->favorite_movies->toBeEmpty();
|
||||
|
||||
test('tellName', function () {
|
||||
throw new \Exception("Oops!");
|
||||
expect($this->sut)
|
||||
->tellName()->toBeString()->toContain('John');
|
||||
})
|
||||
->skip()
|
||||
->group('special tests');
|
||||
|
||||
it('throws', function () {
|
||||
throw new \Exception('oops!');
|
||||
});
|
||||
|
||||
it('is skipped')->skip();
|
||||
|
||||
it('can tellAge')
|
||||
->expect($makeUser)
|
||||
->tellAge()->toBeString()->toContain('18');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue