expect(HasDestructor::class) ->toHaveDestructor(); test('class has no destructor') ->expect(HasNoDestructor::class) ->not->toHaveDestructor();