Files
Investidor-V2/tools/portal-service-followup-large-image-fixture.php
T
nala 287e991486
tests / ci (push) Waiting to run
oportunidades 7
2026-10-13 11:40:29 +02:00

11 lines
730 B
PHP

<?php
// Own synthetic fixture. No account, environment, service or database access.
$path = dirname(__DIR__).'/storage/app/private/investmoz-v2/portal-audit/service-followup-large-image-qa.png';
$size = 1050;$image = imagecreatetruecolor($size,$size);$noise=random_bytes($size*$size*3);$i=0;
for($y=0;$y<$size;$y++) for($x=0;$x<$size;$x++) {
$color=(ord($noise[$i++])<<16)|(ord($noise[$i++])<<8)|ord($noise[$i++]);imagesetpixel($image,$x,$y,$color);
}
imagestring($image,5,10,10,'SIMULACAO QA - SYNTHETIC',0xffffff);
if (!imagepng($image,$path)) throw new RuntimeException('Synthetic PNG failed');
echo json_encode(['bytes'=>filesize($path),'sha256'=>hash_file('sha256',$path),'synthetic'=>true,'active_writes'=>0]).PHP_EOL;