1
0
Fork 0
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:
Michael Utz 2022-11-17 00:39:51 +03:00
parent a6351e49a4
commit e09c38cc51
3 changed files with 54 additions and 100 deletions

View file

@ -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');