svg('https://share.example.com/s/aBcDeFgHiJkLmNoP'); expect($svg)->toStartWith('not->toContain('toContain('width="1024" height="1024"') ->toContain('fill="#ffffff"') ->toContain('fill="#000000"'); }); test('the same contents give the same code, other contents another', function () { $service = new QrCodeService; expect($service->svg('https://share.example.com/s/aBcDeFgHiJkLmNoP')) ->toBe($service->svg('https://share.example.com/s/aBcDeFgHiJkLmNoP')) ->not->toBe($service->svg('https://share.example.com/s/zYxWvUtSrQpOnMlK')); });