Skip to content

Commit 6d9e81c

Browse files
committed
Add debug code for GitHub actions
1 parent 6f2baf6 commit 6d9e81c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/BarcodeTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function testGetSvg(): void
316316
$headers = xdebug_get_headers();
317317
$this->assertEquals(
318318
'Content-Disposition: inline; filename="114f33435c265345f7c6cdf673922292.svg";',
319-
strval($headers[5])
319+
$headers[5]
320320
);
321321

322322
// invalid filename
@@ -340,7 +340,7 @@ public function testGetSvg(): void
340340
$headers = xdebug_get_headers();
341341
$this->assertEquals(
342342
'Content-Disposition: inline; filename="test_SVG_filename-001.svg";',
343-
strval($headers[5])
343+
$headers[5]
344344
);
345345
}
346346

@@ -362,9 +362,10 @@ public function testGetPng(): void
362362
$this->assertNotFalse($png);
363363
$this->assertEquals('PNG', substr($png, 1, 3));
364364
$headers = xdebug_get_headers();
365+
var_dump($headers);//DEBUG
365366
$this->assertEquals(
366367
'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";',
367-
strval($headers[5])
368+
$headers[5]
368369
);
369370

370371
// invalid filename
@@ -374,9 +375,10 @@ public function testGetPng(): void
374375
$this->assertNotFalse($png);
375376
$this->assertEquals('PNG', substr($png, 1, 3));
376377
$headers = xdebug_get_headers();
378+
var_dump($headers);//DEBUG
377379
$this->assertEquals(
378380
'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png";',
379-
strval($headers[5])
381+
$headers[5]
380382
);
381383

382384
// valid filename
@@ -388,7 +390,7 @@ public function testGetPng(): void
388390
$headers = xdebug_get_headers();
389391
$this->assertEquals(
390392
'Content-Disposition: inline; filename="test_PNG_filename-001.png";',
391-
strval($headers[5])
393+
$headers[5]
392394
);
393395
}
394396
}

0 commit comments

Comments
 (0)