toHaveCount(15); foreach ($sizes as $s) { expect($s)->toHaveCount(2) ->and($s[0])->toBeInt()->toBeGreaterThan(0) ->and($s[1])->toBeInt()->toBeGreaterThan(0); } }); it('содержит ходовые размеры (300×250, 240×400, 728×90, 970×250)', function () { $sizes = BannerSizes::all(); expect($sizes)->toContain([300, 250]) ->toContain([240, 400]) ->toContain([728, 90]) ->toContain([970, 250]); });